Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int value1
- int value2
- int value3
- value4 = 0
- print("Enter 3 numbers that are 0 or 1")
- input1 = int(input())
- input2 = int(input())
- input3 = int(input())
- if input1 == "1":
- value4 + 2
- if input1 == "0":
- value4 + 0
- if else:
- print("I'm sorry, I didn't get that.")
- if input2 == "1":
- value4 + 4
- if input2 == "0":
- value4 + 0
- if else:
- print("I'm sorry, I didn't get that.")
- if input3 == "1":
- value4 + 8
- if input3 == "0":
- value4 + 0
- if else:
- print("I'm sorry, I didn't get that.")
- print(value4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement