Jun-12-2017, 12:01 AM
(This post was last modified: Jun-12-2017, 12:01 AM by RodNintendeaux.)
Bass basically answered this already, but I wanted to chime in and let you know what I did to my son a few days ago (I try to show my kids everything I learn in some fun way; perhaps spark a creative want for programming to see if it wants to stick with them). I called my son in and told him I can type "I am the world's greatest Dad!" so fast I can do it 1,000 times in only a few seconds. Wide-eyed and achin' to see me try, he told me to type it once. I pulled up IDLE and typed "I am the world's greatest Dad!" rather slowly.
After calculating mere seconds are already expired he called me on my bluff. What he did not realize, I had already typed this into IDLE:
As soon as I hit ENTER the second time I acted like I was typing so fast causing my fingers to rattle the keys to simulate me typing (when I wasn't). Oh the look on his face... it was so much fun. Poor kid didn't even stop the timer. After about 15 seconds he set the phone down, politely said, "Cheater!" and walked away. I had way too much fun with that one. You guys and gals should have seen it.
After calculating mere seconds are already expired he called me on my bluff. What he did not realize, I had already typed this into IDLE:
p = "I am the world\'s greatest Dad!"I pulled up my phone's timer and handed him my phone then told him to time me and let me know when to start. When he told me to go I typed:
for i in range(1000): print(p)NOTE: Hit ENTER twice here after closing that last parenthesis.
As soon as I hit ENTER the second time I acted like I was typing so fast causing my fingers to rattle the keys to simulate me typing (when I wasn't). Oh the look on his face... it was so much fun. Poor kid didn't even stop the timer. After about 15 seconds he set the phone down, politely said, "Cheater!" and walked away. I had way too much fun with that one. You guys and gals should have seen it.