if__name__=="__main__": n =int(input().strip())if n %2!=0or n %2==0and6<= n <=20:print("Weird")elif n %2==0and2<= n <=5or n %2==0and n >20:print("Not Weird")
Arithmetic Operators
if__name__=='__main__': a =int(input()) b =int(input())print(a + b)print(a - b)print(a * b)
Python: Division
if__name__=='__main__': a =int(input()) b =int(input())print(a // b)print(a / b)
Loops
if__name__=='__main__': n =int(input()) lst =list(range(0 , n))for each in lst:print(each * each)
Write a Function
defis_leap(year):if year %4==0and year %100!=0or year %400==0:returnTrueelse:returnFalseif__name__=="__main__": year =1992print(is_leap(year))
Print Function
if__name__=='__main__': n =int(input())for i inrange(1, n +1):print(i, end="")