+ 1
No using ... Conditiins or def
Take this challenge: ONLY USE 2 LINES of code with parameters of x, y and any one of the operator (+,-,*,/,%) write a calculator function that can calculate +,-,*,/,% operation and print out the result of the operation restriction: 1. can't use 'def' 2. can't use if , elif, nor else
2 Respostas
+ 4
print(eval(input()))
print("do I have to use second line?")