Python tutorial for beginners 2022 - Python for beginners free - Best free Python course
Python tutorial for beginners 2022 |
print("Hello World")
Print Function
print("Print line 1")
print("Print line 2")
print("Print line 3")print("Print line 4")
Python Variables
# Declare a variable and initialize it with value variable1 = 0 print variable1 # re-declaring the variable works variable2 = 'guru99' print variable2
Python Conditional Statements
x = 2
y =8
if(x < y):
print("X is less then Y")
else:
print("X is Larger then Y")
Python For and While Loops: Enumerate, Break, Continue Statement
x=0 for x in range(2,7): print(x)
Varib = ["Jannny","Febby","Marry","Aprilly","Mayy","Juneey"] for m in Varib: print(m)
for x in range (20,30): if (x == 15): break print(x)
for x in range (10,20): if (x % 5 == 0) : continue print(x)
0 Comments