Question

In the Python interpreter window (aka IDLE), create five variables: street, number, city, state, zip. street...

In the Python interpreter window (aka IDLE), create five variables: street, number, city, state, zip. street will hold your street name, number will hold your house number, city will hold your city, state will hold your state, and zipcode will hold your zip code. Print your address in the standard format for mailing addresses. Your print statements will utilize the variable names. Take a screenshot of the IDLE window. It should show your assignment of values to the variables, your print statements, and the output. Insert the screenshot into your HW document.

0 0
Add a comment Improve this question Transcribed image text
Answer #1
street = input("Enter street name: ")
number = input("Enter house number: ")
city = input("Enter city name: ")
state = input("Enter state name: ")
zip = input("Enter zip code: ")

print(number + " " + street)
print(city + ", " + state + " " + zip)

Add a comment
Know the answer?
Add Answer to:
In the Python interpreter window (aka IDLE), create five variables: street, number, city, state, zip. street...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Create a class in Java with instance variables to hold the name, street address, city, and...

    Create a class in Java with instance variables to hold the name, street address, city, and state for a user. These instance variables should be private. You should enter the name and address in the nameAddress method. You should enter the city and state in the cityState method. In the main method, print the complete address using the method printAddress. You should not use the static keyword except for the main method. Your output should be similar to the output...

  • Design a class for python named PersonData with the following member variables: lastName firstName address city...

    Design a class for python named PersonData with the following member variables: lastName firstName address city state zip phone Write the appropriate accessor and mutator functions for these member variables. Next, design a class named CustomerData , which is derived from the PersonData class. The CustomerData class should have the following member variables: customerNumber mailingList The customerNumber variable will be used to hold a unique integer for each customer. The mailingList variable should be a bool . It will be...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT