Strings Quiz (2/2/2024)

By Mickey Arnold
Last updated 10 months ago
7 Questions

s = "Iwantaapple"
print( s[4] )

s = " apluscompsci "
print( len(s) )

s = "apluscompsci"
print( s[4:7] )

s = "apluscompsci"
print( s[:-7] )

s = "apluscompsci"
print( s.find("us") )

s = "apluscompsci"
print( s.rfind("mp") )

s = "apluscompsci"
print( s[4] + s[9] )