Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a code that perform the following tasks: Create a variable that will work as a password Use decision statements to ask the user for

Create a code that perform the following tasks:
Create a variable that will work as a password
Use decision statements to ask the user for a password and check
If the user input is the same as the variable (similar to a login)
Ask the user three times for names of countries and store each
value in a different variable
Print all name variables
Print()
if
for
while
elif
else

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions