Need some pytho help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Need some pytho help

X = "banana" i want print 2nd letter and 4th letter in oder .how is it do ?

24th Oct 2019, 5:06 PM
Chanaka
1 Answer
+ 5
print(X[1], X[3])
24th Oct 2019, 5:21 PM
Russ
Russ - avatar