0
Struggling on the simplest of problems!! Grrrr(*3)
I am learning the basics of Python and there is a problem that keeps churning out an error and I've tried many variations. The problem is so simple..... print input 3 times in a row and add an exclamation. The output should be abcabcabc! Using (input) function.
3 Respuestas
0
I can't remember all of them but I will share what I can remember. I feel like a monkey with a typewriter!
Print(3*input ('!'))
Print(input*3(!))
Print((input*3)+('!))
The closest one I've got prints !abcabcabc and as follows. I feel I'm missing something very fundamental here!
Print(3*input('!'))
Thanks for your help.
0
Jon Berry , try this :
inp = input()
print(3 * inp +"!")
0
Thanks people. I solved it just now before seeing answers.... just took a little thinking and an entire change of how I look at the world. All done. Thank you for assistance.