4.3.7: Positive, Zero, or Negative - Codehs.
Question/Test Case:
Write a program that asks the...
Computers and Technology, 15.12.2020 04:30 lauren21bunch
4.3.7: Positive, Zero, or Negative - Codehs.
Question/Test Case:
Write a program that asks the user for a number. Report whether that number is positive, zero, or negative.
Problem/Error:
File "main. py", line 5
if number < 0:
^
SyntaxError: invalid syntax
My code:
print("Enter a number to see if it's positive, negative, or zero!")
number = int(input("Enter a number: ")
if number < 0:
print(str(number) + "That number is negative!")
elif number > 0:
print(str(number) + "That number is positive!")
else number == 0:
print(str(number) + "That number is zero!")
Answers: 3
Computers and Technology, 22.06.2019 04:30, safi30360oz0c34
What kind of software users of all skill levels create web pages that include graphics, video, audio, animation, and other special effects? website authoring website software website publishing website editing
Answers: 1
Computers and Technology, 22.06.2019 08:30, gg68814
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
Computers and Technology, 22.06.2019 15:20, brookemcelhaney
The north and south regions had very diferent economies in the 1800s.
Answers: 1
Health, 11.09.2020 18:01
Geography, 11.09.2020 18:01
Mathematics, 11.09.2020 18:01
Mathematics, 11.09.2020 18:01
Mathematics, 11.09.2020 18:01
Mathematics, 11.09.2020 18:01
Spanish, 11.09.2020 18:01
Mathematics, 11.09.2020 18:01
Mathematics, 11.09.2020 18:01
Biology, 11.09.2020 19:01