greeting = "Hello world"
print(greeting[0])
print(greeting[-1])

#another way of indexing in sequences
print('Hello'[0])

#We can index the input from the user if its a sequence
year = input('Year : ')[3]
print(year)
d2e2a73e580922e6d0e150819faf397e997ad33d
<mask token>

<mask token>
print(greeting[0])
print(greeting[-1])
print('Hello'[0])
<mask token>
print(year)

greeting = 'Hello world'
print(greeting[0])
print(greeting[-1])
print('Hello'[0])
year = input('Year : ')[3]
print(year)

greeting = "Hello world"
print(greeting[0])
print(greeting[-1])

#another way of indexing in sequences
print('Hello'[0])

#We can index the input from the user if its a sequence
year = input('Year : ')[3]
print(year)