subject

Write a program that takes a first name and a major as the input and outputs a message with that name and major as shown below Ex. If the input is Nithya and Art the output is Nithya 18 majoring in Art. Use the names and majors of students in your breakout room to test your code. Note that to separate the name from the major as part of the input, you need to place these inputs on separate lines. For the example above, we would provide the input as follows: Nithya Art Hint If you directly add the names and majors inside the print statement, then the code would not work correctly since it is relying on the contents of the provided variables. You need to use these variables inside your print statement, so that regardless of the provided input, the output will always use those values and be as expected Hint. If your code does not pass the tests, make sure you do not have an extra space in your output. Remember. Python automatically adda a blank space between expressions separated by a comma LAD ACTIVITY 1161 LAB: Breakout Room Activity 0/15 main. py Load default template 1 username input() 2 najor - input() 5 6 7. the comments below, listing the names and majors of the students who were in the breakout room with you 9.1. May Finance 10. 2. Ronnte Econ 11.). Preston Accounting

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Which type of file can be used to import data into a spreadsheet?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
From excel to powerpoint, you can copy and paste a. cell ranges and charts, one at a time. b. cell ranges and charts, simultaneously. c. charts only. d. cell ranges only.
Answers: 3
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
You know the right answer?
Write a program that takes a first name and a major as the input and outputs a message with that nam...
Questions
question
Mathematics, 04.12.2019 01:31
question
Mathematics, 04.12.2019 01:31
question
Mathematics, 04.12.2019 01:31
question
Mathematics, 04.12.2019 01:31
Questions on the website: 13722361