+ 3

How can I print 1'st and 2'nd letter from word "apple" ?

How can I print 1'st and 2'nd letter from word "apple" ?

19th Oct 2017, 6:32 PM
Бондаренко Алексей Максимович
Бондаренко Алексей Максимович - avatar
1 Réponse
+ 4
print("apple"[:2]) s = "apple" print(s[:2])
19th Oct 2017, 6:52 PM
Boris Batinkov
Boris Batinkov - avatar