Learn Coding Basics for Kids, Young Adults and People That Are Young at Heart, With Python: Python Computer Programming Made Easy! by Academy Tech & Gross Erik & Stanley Jack
Author:Academy, Tech & Gross, Erik & Stanley, Jack [Academy, Tech]
Language: eng
Format: epub
Published: 2020-07-29T16:00:00+00:00
“Ah, I see where you’re going with this…” Erik said. “You can import modules (groups of code written by others that you can use). For example, Python has a math module that you can use to do advanced math. To use these modules, you import them!”
“Well, Erik, you tied that up like a nice little bow!” Jack announced. “So, back to counting slower – write this code in the text editor:”
import time
counter = 0
print (counter)
time.sleep(.5)
counter = counter + 1
print (counter)
time.sleep(.5)
counter = counter + 2
print (counter)
time.sleep(.5)
counter = counter + 3
print (counter)
time.sleep(.5)
counter = counter - 6
print (counter)
time.sleep(.5)
“Save and execute your code. We counted with each number .5 seconds (half a second) apart!” Jack explained. “time.sleep is one of the functions (code that can be reused) included in the time module (code written by others that we can use), for causing delays in our programs.”
“Interesting,” Erik said. “It’s that time again: challenge time! Okay, magical reader, write, save and run this code in the text editor:”
● Create a list and display (print) the whole thing,
● Print one value from the list, and
● Use the counter to count from 1 to 10 with a one second delay between each number.
While the reader completed the challenge, Erik and Jack rode a rocket into outer space to test something out. Once they were near the moon, they gazed back at Earth.
“Just as we thought,” Erik said. “We can see the reader’s awesomeness from space!”
“Houston, we don’t have a problem,” Jack announced.
“I think some people aren’t going to get that…”
“Well, they just need to watch the movie Apollo 13 .”
“If we are recommending movies, I have a few that-”
“Erik!” Jack interrupted, “the book. The book, Erik.”
“My apologies, Jackalope. Let’s start the next chapter now.”
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
API Testing and Development with Postman by Dave Westerveld(3624)
Learning C# by Developing Games with Unity 2020 by Harrison Ferrone(2618)
Software Architecture for Busy Developers by Stéphane Eyskens(2324)
2021 Beginners Guide to Python Programming Language: A Crash Course to Mastering Python in One Hour by Elmer Gary & Elmer Gary(1884)
Machine Learning for Algorithmic Trading by Stefan Jansen(1629)
Hands-On ROS for Robotics Programming by Bernardo Ronquillo Japón(1572)
Delphi GUI Programming with FireMonkey by Andrea Magni(1457)
Game Development Projects with Unreal Engine by Hammad Fozi & Goncalo Marques & David Pereira & Devin Sherry(1402)
Cloud Native with Kubernetes by Alexander Raul(1374)
Datadog Cloud Monitoring Quick Start Guide by Thomas Kurian Theakanath(1347)
Software Architecture Patterns for Serverless Systems by John Gilbert(1338)
Practical Node-RED Programming by Taiji Hagino(1336)
Automate It with Zapier by Kelly Goss(1318)
Practical System Programming for Rust Developers by Prabhu Eshwarla(1312)
Delphi Programming Projects by William Duarte(1296)
Mastering React Test-Driven Development by Daniel Irvine(1290)
Developing Multi-Platform Apps with Visual Studio Code by Ovais Mehboob Ahmed Khan & Khusro Habib & Chris Dias(1253)
Ghidra Software Reverse Engineering for Beginners by A. P. David(1245)
Learn Spring for Android Application Development by S. M. Mohi Us Sunnat(1236)
