Python index operator tutorial explained
#python #index #indexing
# index operator [] = gives access to a sequence’s element (str,list,tuples)
name = "bro Code!"
#if(name[0].islower()):
#name = name.capitalize()
first_name = name[:3].upper()
last_name = name[4:].lower()
last_character = name[-1]
print(first_name)
print(last_name)
print(last_character)
#python #index #indexing
# index operator [] = gives access to a sequence’s element (str,list,tuples)
name = "bro Code!"
#if(name[0].islower()):
#name = name.capitalize()
first_name = name[:3].upper()
last_name = name[4:].lower()
last_character = name[-1]
print(first_name)
print(last_name)
print(last_character)
- Category
- Bro Code
- Tags
- python index, index python, python indexing

Be the first to comment