2 years ago

#54145

test-img

Samy35

Is there a way to split an operation (division) in python?

I was trying to do this code :

x = 18.00 /34

a = str(x).split(" /")
print(a)

I understood that it would do the operation (18/34) but i was trying to get this:

a = ['18.00','34']

Is there a way to get this outpout ?

python-3.x

split

division

0 Answers

Your Answer

Accepted video resources