Skillshare intro to Python/Unit 4: Difference between revisions

no edit summary
imported>Jesstess
m (Protected "Skillshare intro to Python/Unit 4" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)) [cascading])
imported>Jesstess
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2:
 
== Goal #1: using modules ==
 
(Estimated completion time: 15 - 30 minutes)
 
To get some more practice with the <code>random</code> module, we're going to read, run, and extend some Python scripts that use this module.
Line 23 ⟶ 25:
<b>Here are you scripts to read and run</b>. Have fun with them!
 
* [http://web.mit.edu/jesstess/www/SkillsharePython/Unit4/die.py nobeldie.py]
* [http://web.mit.edu/jesstess/www/SkillsharePython/Unit4/password_generator.py password_generator.py]
 
For <code>die.py</code>, how would you change the program to simulate rolling 2 dices?
Line 32 ⟶ 34:
 
== Goal #2: reading from files ==
 
(Estimated completion time: 15 - 30 minutes)
 
To get some more practice with reading from files, we're going to read, run, and extend some Python scripts.
Anonymous user