0

Problem of python

Suppose I want to just print first letter of the first word of the list what should I have to do x = ["Standard","Ratio","Clock"] print(x) print(x[0]) here I want to just take S as an output

3rd Oct 2021, 12:05 PM
Sayyam Jain
Sayyam Jain - avatar
4 odpowiedzi
+ 1
print(x[0]) It means give me (output) the first text. print(x[0][0]) It means give me (output) the letter one of the first text.
3rd Oct 2021, 5:59 PM
Sarmad Saad
Sarmad Saad - avatar
0
Time To Code Sarmad Saad Thanks guys I actually forgot it
3rd Oct 2021, 6:04 PM
Sayyam Jain
Sayyam Jain - avatar
0
Sayyam Jain You're welcome 😊.
3rd Oct 2021, 7:06 PM
Sarmad Saad
Sarmad Saad - avatar