0

Can you write an operation to a variable?

I want to make a calculator in python 3, but it doesn't seem to like operators (+, %, *, etc.) Anyone know a program that can?

26th Jan 2017, 5:22 PM
BuchananMegahurtz
BuchananMegahurtz - avatar
1 Answer
+ 2
This should work: a = 3 + 5 print(a) If it doesn't, post minimal reproduction of your code, what you expect to happen, what happens instead, and the full error it generates, if any.
30th Jan 2017, 3:16 AM
Igor B
Igor B - avatar