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

Strings Times Numbers

mediumStrings

📄 Code

Read carefully — what does this print?
1dash: str = '-'
2word: str = 'ab'
3print(dash * 5)
4print(word * 3)
5print(word + dash * 2 + word)
6print(len(word * 4))
7print('3' + '4', 3 + 4, '3' * 4)

🎯 Your Answer