Heads or tails
- Import all random methods (eg import random)
- Generate a random number...
Computers and Technology, 03.11.2020 07:50 jrfranckowiak
Heads or tails
- Import all random methods (eg import random)
- Generate a random number between 1-2
- Store the value in a variable called, 'rnd_value'
- If rnd_value equals 1, then output, 'heads' and if rnd_value equals 2, then output, 'tails'
- Use a variable called 'heads' assigned to 0, and a variable called, 'tails' assigned to 0
- Each time heads or tails is output, increment the variables heads to tails by 1
- Use a loop to repeat this process x1000, so that the variables heads/tails is being increment each time by 1
- After the loop is complete, then output the value of the variable heads and output the value of the variable tails.
Answers: 3
Computers and Technology, 21.06.2019 17:00
How can data be added in a table by using what view
Answers: 1
Computers and Technology, 21.06.2019 19:00
Jill wants to become a network professional. which certification would be useful for her? a. mcse b. pmp c. comptia a+ d. ccie
Answers: 2
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
Computers and Technology, 23.06.2019 19:30
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
English, 24.09.2019 23:20
English, 24.09.2019 23:20
Physics, 24.09.2019 23:30
Biology, 24.09.2019 23:30
Mathematics, 24.09.2019 23:30
Mathematics, 24.09.2019 23:30
History, 24.09.2019 23:30