+ 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
2 Answers
+ 4
print("apple"[:2]) s = "apple" print(s[:2])
19th Oct 2017, 6:52 PM
Boris Batinkov
Boris Batinkov - avatar