Dec-25-2017, 03:59 PM
def print_twice(bruce):
print ("bruce")
print ("bruce")
print_twice("spam")
bruce
bruce
print_twice(17)
bruce
bruce
The book says if i type in print twice it will print whatever i type TWICE....wtf am doing wrong now. Does anyone know of a real book for idiots like me....This book is missing too much information. It doesnt tell you enough...
If i want to print something twice how can i do that....?
I understood when i wrote the code the crap wasnt going to print "spam" twice because its defined as bruce...so how can i create a function that DOES work like i want it to???
I feel like im reading chinese sometimes trying to learn this stuff, any other books someone with ZERO computer experience can read or watch to learn EVERYTHING???
thank you!
print ("bruce")
print ("bruce")
print_twice("spam")
bruce
bruce
print_twice(17)
bruce
bruce
The book says if i type in print twice it will print whatever i type TWICE....wtf am doing wrong now. Does anyone know of a real book for idiots like me....This book is missing too much information. It doesnt tell you enough...
If i want to print something twice how can i do that....?
I understood when i wrote the code the crap wasnt going to print "spam" twice because its defined as bruce...so how can i create a function that DOES work like i want it to???
I feel like im reading chinese sometimes trying to learn this stuff, any other books someone with ZERO computer experience can read or watch to learn EVERYTHING???
thank you!