1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vagabundo [1.1K]
2 years ago
15

Can someone pls help fix my code on Project stem. 2.7 Code Practice: Question 1 (Python no Java script)

Computers and Technology
1 answer:
Savatey [412]2 years ago
4 0

The required code which displays the largest of three user supplied integer values written in python is as follows :

num_1 = int(input())

#takes first integer input from user

num_2 = int(input())

#takes second integer input from user

num_3 = int(input())

#takes third integer input from user

def maximum(num_1, num_2, num_3):

#initiates a function named maximum which takes the three user defined inputs

largest = num_1

#sets num_1 as the largest

if (num_2 > num_1) and (num_2 >num_3):

#checks if num_2 is greater than the first and third input

largest = num_2

#if TRUE set the second input as the largest

elif (num_3 > num_1) and (num_3 > num_2):

#checks if num_3 is greater than the first and second input

largest = num_3

#if TRUE, set the third input as the largest

return largest

# return the largest value after evaluation.

print('Largest value is :' + str(maximum(num_1, num_2, num_3)))

#displays the maximum value of the three inputs.

The result of the code processed is attached in the picture below.

Learn more :brainly.com/question/14786286

You might be interested in
Brent recently received funding for his fast-food chain in Michigan. As a result, he hires Angela to set up a top-level domain s
Elena-2011 [213]

The option among the top level domain names that Angela should opt for under such requirements is .biz.

<h3>What's a domain name? </h3>

Domain names are known to be formed to create IP addresses very easy so that one can easily remember.

Note that the domain name of biz is better for Angela to use as it is suitable for her business and as such, The option among the top level domain names that Angela should opt for under such requirements is .biz.

Learn more about domain name from

brainly.com/question/17062016

#SPJ1

5 0
2 years ago
Samuel is working on decimal and binary conversion for his college project. He is using the binary number 111011 and wants to ex
SCORPION-xisa [38]

someone help i need the answer

4 0
3 years ago
How many nibbles are in 18 bytes??
IgorC [24]
36 Nibbles are in 18bytes.
7 0
4 years ago
Python Coding:
leva [86]

Answer:

# Here we are asking the user for a number two times

userInput1 = input("Enter any #: ")

userInput2 = input("Enter any # again: ")

# We compare if userInput1 is greater than userInput2

if(userInput1 > userInput2):

   # Print userInput1 if userInput1 is greather than userInput2

   print("First Number: " + userInput1)

   # Otherwise, print userInput2

else:

   print("Second Number: " + userInput2)

# Initiate a while-loop

while(True):

   # The lines below are from above

   userInput1 = input("\nEnter any #: ")

   userInput2 = input("Enter any # again: ")    

   if(userInput1 > userInput2):

       print("First Number: " + userInput1)

   else:

       print("Second Number: " + userInput2)

   # We ask the user whether they would like to stop

   stop = input("\nWould you like to stop? (Yes or No)")

   # Compare the String stop with "Yes"

   if(stop == "Yes"):

       # If true then break

       break

Explanation:

The use of \n is unnecesary, but it skips a line and provides more readability.

5 0
3 years ago
What is jcl language on the mainframe?
Pavel [41]
Job Control Language on the mainframe is the name for scripting language used on IBM mainframe operating system to instruct how to start a subsystem.
5 0
4 years ago
Other questions:
  • Hailey is preparing a questionnaire on the different number systems. He asks the students to write down the correct decimal and
    10·2 answers
  • What is the purpose of look up tables in spreadsheet software apex
    13·1 answer
  • Hich of the following usually indicates that there is no moreinput to be read by a program?
    14·1 answer
  • ______ is the primary and dominant cryptographic authentication and encryption framework for security development within the TCP
    12·2 answers
  • Vertebrates first arrived during the _________________.
    9·1 answer
  • Identify a true statement about a flat file system. a. Data in a flat file system can be updated efficiently. b. Data in a flat
    9·1 answer
  • Lost passwords set for documents in Microsoft® Word® documents can be retrieved in the backstage view. True False
    9·2 answers
  • PLEASE HELP!!!
    11·1 answer
  • How might a company gain followers on Twitter?
    7·1 answer
  • How have the computers contributed in the banking ?<br>​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!