+ 1

Fill in the blanks to output the first 3 characters of the input string.

Fill in the blanks to output the first 3 characters of the input string.

3rd Feb 2021, 1:39 PM
iliyaabdollahian
iliyaabdollahian - avatar
9 Antworten
+ 5
x = input() print(x[0 : 3])
27th Jun 2021, 8:49 AM
Mahnoor Shahzad
Mahnoor Shahzad - avatar
+ 1
You should search for slicing tutorials or probably loop over the string to output first 3 characters.
3rd Feb 2021, 1:42 PM
Abhay
Abhay - avatar
0
You do it with loops or slicing..
3rd Feb 2021, 3:45 PM
Hisham YUM 🇲🇦
Hisham YUM 🇲🇦 - avatar
0
0 , 3
8th Mar 2021, 7:57 AM
Chinette Ann Villanueva
Chinette Ann Villanueva - avatar
0
0 , 3
12th Mar 2021, 5:58 PM
Syed Fahad Ahmed
Syed Fahad Ahmed - avatar
0
1. 0 2. 3
27th Aug 2021, 2:25 PM
PRINCE KUMAR
PRINCE KUMAR - avatar
0
can u help with the correct answer?
9th Nov 2022, 6:46 PM
ADRIAN ECHEVERRIA CASTRO
0
0:3
4th Jul 2023, 6:02 AM
Keerthana
Keerthana - avatar