# name = "enamul"

# string stores the character by index 
# 0   1   2   3   4   5   
# e   n   a   m   u   l
# -6 -5  -4  -3  -2  -1

# print(name[0])
# print(name[-3])

#slice
#name[start:end:step]
# print(name[1:5])
# print(name[2:6])
# print(name[3:])
# print(name[:3])
# print(name[-6:5])
# print(name[-6:3])
# print(name[-3:7])
# print(name[1:6:2])
# print(name[4:1])

# fullName = "enamul hussain"
# print(fullName[0])

#basic two types of for loop

# for char in fullName:
#     print(char)

#range()function
# for loop with range() func

# for x in range(1,10):
#    print(x)     

# for x in range(1,20,4):
#     print(x)
# name = "amol"
# for char in name:
#     print(char)
# for x in range(4):
#     print(name[x])

# g = "enamul"

# print(g[0])
# for char in g:
#     print(char)

# for char in range(6):
#     print(g[char])

# fruits = "apple"
# print(fruits.count('p'))
# count = 0
# count2 = 0
# for char in range(len(fruits)):
#   print(fruits[char])
#   if fruits[char]== 'p':
#       count2 = count2 + 1
#       print(count2)

# m = "enamul hussain"
# for index in range(len(m)):
#     if m[index] == "a":
#         print(index)

# even
# for x in range(2, 51 ,2):
#     print(x)

# for x in range(2, 100):
#     if x % 2 == 0:
#         print(x)
