CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List
Python Code Walkthrough #35

Prepending In A Loop

mediumStrings

📄 Code

Read carefully — what does this print?
1result: str = ''
2for ch in 'hello':
3 result = ch + result
4 print(result)
5print(len(result))

🎯 Your Answer