+ 2

dividing and printing string

let's say I have str = 'Josip' and I want output to be like J o s i p

17th Aug 2016, 11:47 AM
Josip Komljenović
Josip Komljenović - avatar
3 ответов
+ 2
find length of string and loop through its length and print srt value each time in indexed array format with '\n'
17th Aug 2016, 5:56 PM
Manish Pandey
Manish Pandey - avatar
+ 2
str = "Josip" for letter in str: print(letter)
17th Aug 2016, 8:29 PM
Ricky Joanne
Ricky Joanne - avatar
0
Ans from @Ricky works better.
17th Aug 2016, 11:29 PM
Aditya Karva