Bluey wants to share snacks with her friends, but she needs to make sure everyone gets the right number of snacks.
Use conditionals to determine if Bluey has enough snacks for everyone.
Instructions:
Ask the user how many snacks Bluey has
Ask the user how many friends Bluey has
If Bluey has enough snacks, tell the user, otherwise, let them know they need to get more!
Concepts Being Checked:
user input
number input
print statements
basic conditionals
Bluey has started a secret club and only allows her friends to enter if they know the correct password. Use conditionals to check if the password is correct and let the friend know if they can enter.
Instructions:
Create a variable containing Bluey's Secret Password. The user does NOT Enter this one
Ask the user for the secret password
If the user enters the correct password, let them in. If not, tell them they don't have the correct password!
Concepts Being Checked:
user input using strings
print statements
basic conditionals (= vs equality)
string formatting
A minion is preparing for an adventure to deliver a top-secret banana shipment, but needs to check if they have enough bananas and if the weather is suitable. Use a menu to choose the weather type and make decisions using two if/else statements.
Instructions:
Get a random number of required bananas by using:
Ask the user for how many bananas they have
Show the user a menu for the current weather conditions (1 = Sunny, 2 = Raining)
Have the user pick what type of weather it is
NOW...
Let the user know if they have enough bananas for the trip
Let the user know if they can make the drive (they had to have picked sunny)
Concepts Being Checked:
use of multiple if/statements
print statements
basic logic
string formatting
library import and use of random
Enough Bananas and Sunny Weather
Enough Bananas but Rainy Weather