CODE WORD
Welcome to the CODE WORD
Hello there!
Get ready to start learning Python...
This is going to be awesome....
REQUIREMENTS FOR THIS COURSE...
1. You must have a laptop.
2. For coding Python or any computer languages in this webpage, you just need an IDE or a COMPILER.
INSTALLING CODING ENVIRONMENT
So first let's install a very famous coding IDE with built-in COMPILER, namely VISUAL STUDIO CODE.
It is not compulsory to use the same...
You can use many like "PYCHARM", "REPLIT", "ATOM", etc...
Let's start to install "VS CODE"...
First go to - https://code.visualstudio.com/download
Then download the latest version of VS CODE for your operating systems.
Getting Started with Python
Now that your environment is set up, let's write our first Python code!
# This is a comment
print("Hello, World!") # This line prints a message
Try running this code in your Python IDE to see the output. It should display: Hello, World!
Lesson 1: Variables and Data Types
In Python, variables are used to store data. Let's explore how to create variables and use different data types.
name = "John"
age = 25
is_student = True
height = 5.9
print(f"Name: {name}, Age: {age}, Student: {is_student}, Height: {height}")
In the example above, we created variables of different types:
- String: name
- Integer: age
- Boolean: is_student
- Float: height
Lesson 2: Conditional Statements
Conditional statements allow us to control the flow of the program based on conditions.
age = 18
if age >= 18:
print("You are eligible to vote.")
else:
print("You are not eligible to vote.")
Interactive Coding
If you'd like to practice coding online, visit this Python compiler: REPLIT to run and modify your code in real-time!
Further Learning Resources
Here are some additional resources to help you continue learning Python: