subject
Computers and Technology, 01.10.2019 20:20 Pordie

Write python code that does the following: a. assigns the values 3, 4 and 5 to the variables a, b and c, respectively. b. write an if statement that prints "ok" if a is less than b c. write an if statement that prints "ok" if c is less than b d. write an if statement that prints "ok" if the sum of a and b is equal to c e. write an if statement that prints "ok" if the sum of a squared and b squared equals c squared. 2. repeat the previous problem with the additional requirement that "not ok" is printed if the condition is false.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:00
Which best compares appointments and events in outlook 2010appointments have a subject man, and events do notappointments have a specific date or range of dates, and events do notappointments have a start and end time of day, and events do notappointments have a location option, and events do not
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
You know the right answer?
Write python code that does the following: a. assigns the values 3, 4 and 5 to the variables a, b a...
Questions
question
Mathematics, 11.04.2021 07:40
question
Mathematics, 11.04.2021 07:50
question
English, 11.04.2021 07:50
Questions on the website: 13722359