Learn Coding Basics for Kids, Young Adults and People That Are Young at Heart, With Python: Python Computer Programming Made Easy! by Tech Academy & Erik Gross & Jack Stanley
Author:Tech Academy & Erik Gross & Jack Stanley [Academy, Tech]
Language: eng
Format: azw3
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.
Everything You Need to Ace World History in One Big Fat Notebook by Workman Publishing(851)
How Things Work by Theodore Gray(711)
Time To Go by Time To Go (epub)(652)
The School of Life Dictionary by The School Of Life(644)
Big Ideas for Curious Minds - An Introduction to Philosophy by The School of Life(642)
Rework by Jason Fried; David Heinemeier Hansson(594)
Idioms & Phrases by Informative Books(589)
Creative Writing Practice by Unknown(533)
History of the World in 100 Animals by Simon Barnes(515)
Painless Pre-Algebra by Amy Stahl(493)
Letters from Cuba by Ruth Behar(492)
The World's Greatest Mountain Ranges - Geography Mountains Books for Kids | Children's Geography Book by Baby Professor(479)
A Dictionary of Computer Science by 2016(460)
Tasty Finger Food Recipes for Kids: 50 Finger Foods That Make Every Meal with Your Kids a Breeze by C. Will(454)
Critical Thinking by Gerald J. Watson Jr(447)
French Short Stories for Beginners: 20 Captivating Short Stories to Learn French & Grow Your Vocabulary the Fun Way! (Easy French Stories t. 1) (French Edition) by Lingo Mastery(428)
The Great Book of American Heroes by O'Neill Bill(411)
The Story of a Shipwrecked Sailor by Gabriel García Márquez(405)
Write Like a Ninja by Andrew Jennings(395)
