0

Why can't i enter 2 inputs?

Here is the code: #Imports math import math #Sine and cosine calculator function = input() number = int(input()) if function == "sine": math.sin(number) elif function == "cosine": math.cos(number) else: raise TypeError("Function needs to be sine or cosine")

2nd Apr 2023, 6:11 AM
ERROR Rubiks Zera Brand 2023
ERROR Rubiks Zera Brand 2023 - avatar
2 ответов
+ 5
You have to enter all inputs in the input prompt of the code playground. So if your phone is like mine after the first input press the return key for a new line and the enter the second. Then press run or ok or whatever that prompt says
2nd Apr 2023, 6:33 AM
Bob
0
Reply from Bob Thanks!
2nd Apr 2023, 7:56 AM
ERROR Rubiks Zera Brand 2023
ERROR Rubiks Zera Brand 2023 - avatar