Day 1 Python

harichselvamc
2 min readJan 6, 2023

--

Day 1/20

On Day 1 of your Python learning journey, you should start by going through the official Python documentation to familiarize yourself with the basics of the language. This will give you a solid foundation to build upon as you continue learning and practicing.

To do this, you can visit the following link: https://docs.python.org/3/tutorial/

Here are a few examples of concepts you might encounter on Day 1, along with some code snippets that demonstrate how they work:

Basic data types:

# numbers
x = 3
y = 4.5
# strings
name = "Alice"
# booleans
is_raining = True

Variables and assignment:

x = 10
y = 5
z = x + y # z is now 15
name = "Programmer"
greeting = "Hello, " + name #greeting is now "Hello, Programmer"

Basic operators:

x = 5
y = 3
# arithmetic operators
print(x + y) # 8
print(x - y) # 2
print(x * y) # 15
print(x / y) # 1.6666666666666667
print(x % y) # 2
print(x ** y) # 125
# comparison operators
print(x > y) # True
print(x < y) # False
print(x == y) # False
print(x != y) # True

Basic control Structures:

x = 10
y = 5
if x > y:
print("x is greater than y")
else:
print("x is not greater than y")
# output: "x is greater than y"
for i in range(5):
print(i)
# output: 0 1 2 3 4

I hope that these Python Preparation Plans will help you enhance your interest in programming as well as python and then all python topics. Please feel free to provide insightful remarks in the space below.

20days-python-plans

--

--

harichselvamc

I am a quick learner with a good eye for detail. I am also an exceptional coder with a great work ethic.