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 this online Python editor:


unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area

Did you like this challenge?

Click on a star to rate it!

Average rating 3.7 / 5. Vote count: 42

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: ,