Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

Strings Quiz (2/2/2024)

star
star
star
star
star
Posljednje ažuriranje about 2 years ago
7
1
Pitanje 1
1.

s = "Iwantaapple"

print( s[4] )

1
1
1
1
1
1
Pitanje 2
2.

s = " apluscompsci "

print( len(s) )

Pitanje 3
3.

s = "apluscompsci"

print( s[4:7] )

Pitanje 4
4.

s = "apluscompsci"

print( s[:-7] )

Pitanje 5
5.

s = "apluscompsci"

print( s.find("us") )

Pitanje 6
6.

s = "apluscompsci"

print( s.rfind("mp") )

Pitanje 7
7.

s = "apluscompsci"

print( s[4] + s[9] )