# Loops
# For loop and while

'''
for <variable> in iterator:
    statement 1
    statement 2
'''

# for i in range(0,10):
#     # print(each)
#     print(i,end="\t ")


# string
# str1 = "Python Programming"
# a1 = input("Enter the frequency of given char: ")
# sum1 = 0

# for i in str1:
#     if i == a1:
#         sum1 = sum1 + 1

# print(f"The {a1} repeated {sum1} times")

# for loop with list1
# list1 = [1,2,3,4, "a", "b"]
# for i in list1:
#     print(id(i))
#     print(i)

# sum of first n numbers n>=1

# num1 = int(input("Enter the number "))

# sum1 = 0

# for i in range(1,num1+1):
#     sum1 = sum1 + i
#     print(i,"\t",sum1)

## while loop



