K
K
KindOfHeaven2018-04-02 22:51:22
Python
KindOfHeaven, 2018-04-02 22:51:22

How to count an expression as a python string?

How to read an expression like "2333+322" into a variable in python?

e = input()
#2333+332 
print(e)
//2665, а нужно "2333+332"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
longclaps, 2018-04-02
@longclaps

  • right - switch to python3

T
tekleworm, 2018-04-11
@tekleworm

Try to use
e = str(input())

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question