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 03:00
You install teamviewer on your workstation at home so that you can ac ess it when on the road. how can you be assured that unknown users cant access your computer through team viewer?
Answers: 2
Computers and Technology, 22.06.2019 05:30
Agood flowchart alludes to both the inputs and outputs you will need to receive and give to the user. true or false?
Answers: 3
Computers and Technology, 22.06.2019 13:50
The instruction ishl (shift left integer) exists in jvm but not in ijvm. it uses the top two values on the stack, replacing the two with a single value, the result. the sec- ond-from-top word of the stack is the operand to be shifted. its content is shifted left by a value between 0 and 31, inclusive, depending on the value of the 5 least signifi- cant bits of the top word on the stack (the other 27 bits of the top word are ignored). zeros are shifted in from the right for as many bits as the shift count. the opcode for ishl is 120 (0x78).a. what is the arithmetic operation equivalent to shifting left with a count of 2? b. extend the microcode to include this instruction as a part of ijv.
Answers: 1
Mathematics, 19.01.2021 05:10
Health, 19.01.2021 05:10
English, 19.01.2021 05:10
Mathematics, 19.01.2021 05:10
Computers and Technology, 19.01.2021 05:10
Mathematics, 19.01.2021 05:10
History, 19.01.2021 05:10
Mathematics, 19.01.2021 05:20
History, 19.01.2021 05:20
Physics, 19.01.2021 05:20
Mathematics, 19.01.2021 05:20
Biology, 19.01.2021 05:20