Fruit Machine

fruitmachine

Learning Objectives


In this challenge you will complete a full Python Program to simulate a fruit machine.

You will use the random library to randomly select a fruit to display on screen.

You will use if statements to check if the user has won the Jackpot!

Your Task

Click on the picture below to see how the code works. Use this code to complete your own fruit machine.

fruit-machine

You can type your code using one of these online Python editors:

trinket
codingground


Share Button
Posted in Computer Science, Python - Beginner, Python Challenges Tagged with: ,

Our Latest Book

Follow this blog