#=============================
#Taking Input
#=============================


# name = input("Enter name")
# print("Hello",name)


#=============================
#Age calculation
#=============================


# ageYear = input("Enter your Birth year "  )
# age = 2020 - int(ageYear)
# print("This is your age" ,age)


#=============================
#Calculaton
#=============================


# valueFirst = float(input("Enter Value"))
# valueSecond = float(input("Enter Value"))
# sum  = valueSecond + valueFirst
# print(sum)


#=============================
#Playing with Strings
#=============================


# presence = "Hello world"
# print("Hello" in presence)


#=============================
#If else
#=============================

# age = 22
# if age>20:
#     print("Your are young")
# elif age<20:
#     print("your are child")


#=============================
#KG to gram and gram to kg
#=============================


# weight = int(input("Enter Weight :"))
# unit = input("Enter K for KG and G for Gram  ")

# if unit.upper()=="K":
#     conv = weight*1000
#     print("Your weight in grams " + str(conv) )
# else:
#     conv = weight / 21000
#     print("Your weight in kg " + str(conv))


#=============================
#WHile loops
#=============================


# i = 1
# while i<=20:
#     print(i)
#     i=i+1


#=============================
#For Loop
#=============================

# item = [1,2,3,4,5]
# for i in item:
#     print(i+1)


#=============================
#List
#=============================


# name = ["usama","irfan","shahzad","sherry","shamaz"]

# print(name)

# print(name[0:3])

# print(name.clear())

# name.remove("shamaz")
# print(name)

# print("irfan" in name)


#=============================
#Range
#=============================

# itration = range(5)
# itration = range(5,10)
# itration = range(5,100,10)

# print(itration)

# for it in itration:
#     print(it)


#=============================
#Tuples
#=============================

#Tuples are immutable

# itration = (1,2,3,4,4,4,4)
# print(itration.count(4))