subject

This coding language is Python. Please help, I'm having a hard time figuring this out.

Write a program that takes three numbers as input from the user, and prints the largest.

Sample Run
Enter a number: 20
Enter a number: 50
Enter a number: 5

Largest: 50
Hint: Remember that the numbers should be compared numerically. Any input from the user must be transformed into an integer, but printed as a string.

This is my code:
var = input("Enter a number:")
vartwo = input("Enter a number: ")
varthree = input("Enter a number: ")

print("\n")
print (max(var, vartwo, varthree))
I'm not sure how to do print("Largest: ") on the same line as print (max(var, vartwo, varthree)). Please help!

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Which tab should you open to find the option for adding a header?
Answers: 1
question
Computers and Technology, 22.06.2019 19:10
What a backup plan that you have created in a event you encounter a situation
Answers: 2
question
Computers and Technology, 22.06.2019 22:40
When you type the pwd command, you notice that your current location on the linux filesystem is the /usr/local directory. answer the following questions, assuming that your current directory is /usr/local for each question. a. which command could you use to change to the /usr directory using an absolute pathname? b. which command could you use to change to the /usr directory using a relative pathname? c. which command could you use to change to the /usr/local/share/info directory using an absolute pathname? d. which command could you use to change to the /usr/local/share/info directory using a relative pathname? e. which command could you use to change to the /etc directory using an absolute pathname? f. which command could you use to change to the /etc directory using a relative pathname?
Answers: 3
You know the right answer?
This coding language is Python. Please help, I'm having a hard time figuring this out.

...
Questions
question
Mathematics, 12.08.2021 05:00
question
Mathematics, 12.08.2021 05:00
question
Mathematics, 12.08.2021 05:00
question
Social Studies, 12.08.2021 05:00
Questions on the website: 13722361