Please I need help, I can't remember the function used to call up a single character from a string. For example, h from "hello" | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Please I need help, I can't remember the function used to call up a single character from a string. For example, h from "hello"

15th Jan 2022, 4:17 AM
Wilfrid Okorie
2 Respostas
+ 5
Learn about slicing. You can also use index to read character like: sttt = 'hello' print(sttt[0])
15th Jan 2022, 4:21 AM
AĶ¢J
AĶ¢J - avatar
+ 1
Thank you
23rd Jan 2022, 4:45 AM
Wilfrid Okorie