+ 2
How to know first alphabet , middle alphabet and last alphabet from a string ?
input : any string with len even output : (first alphabet) (middle alphabet) (last alphabet) please help me guys
1 Odpowiedź
0
My_string ="hello";
Length=len(My_string);
print(My_string[0]);
print(My_string[Length-1]);
print(My_string[Length//2]);