Skip to main content
elearn.ellak.gr
  • Home
  • More
You are currently using guest access
Log in
Home
  1. Open Courses in English
  2. python_lab_ellak
  3. Module 3
  4. Assignment 3.1
Assignment

Assignment 3.1

Assignment 3.1

Completion requirements
Receive a grade

Coin flip tossercoin flip

  • Create a program that will print a random 0 or 1.
  • Instead of 0 or 1, print heads or tails. Do this using if statements.
  • Add a loop so that the program does this 50 times.
  • Create a running total for the number of heads flipped, and the number of tails.

Create a new program, test it and upload it using your name and followed by AS3.1 in the programs file name. As an example a programs filename could be Name_Surname_AS3.1.py

For your effort you will be graded and you will have another try if you want to get a better grade. Passing grade is 60%.

A starting example - it is not the complete code. There is help inside the comments.

Search for random command here

◄ Check List of Module 3
Assignment 3.2 ►
You are currently using guest access (Log in)
Data retention summary
Get the mobile app
Powered by Moodle