2. Write a program that does the following: a. Define a variable, and set its value to be your name as a string b. Ask t

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

2. Write a program that does the following: a. Define a variable, and set its value to be your name as a string b. Ask t

Post by answerhappygod »

2 Write A Program That Does The Following A Define A Variable And Set Its Value To Be Your Name As A String B Ask T 1
2 Write A Program That Does The Following A Define A Variable And Set Its Value To Be Your Name As A String B Ask T 1 (21.71 KiB) Viewed 40 times
2. Write a program that does the following: a. Define a variable, and set its value to be your name as a string b. Ask the user for their name, and store their answer in a variable. **Hint: Use input() to prompt the user for their name. C. Compare both of your names, and print out a message that indicates whose name comes first alphabetically. For example, the name 'Annie' would come before 'Terry' **Hint: You will need to use one of our six comparison operators: < >, <
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply