Are there more ways to do this? | Sololearn: Learn to code for FREE!

+5

Are there more ways to do this?

To get the version of python. Are there more ways to get the version of Python ? This is my way!! https://code.sololearn.com/crTH5h7O5tlG/?ref=app

4/1/2021 3:45:42 AM

K.S.S. Karunarathne

10 Answers

New Answer

+6

+5

K.S.S. Karunarathne (Active Challenger) maybe this might interesting you https://code.sololearn.com/c20FpE7gTXze/?ref=app

+5

K.S.S. Karunarathne (Active Challenger) here is another I just tossed together .. real short and simple https://code.sololearn.com/c51c6PZQJLiG/?ref=app

+4

Welcome K.S.S. Karunarathne (Active Challenger)

+3

Nishit Katole 33 VII C This isn't a way to get it.

+2

Nishit Katole 33 VII C Ofcourse 😂😂😂

+2

Thanks BroFar sir

+1

Alright, but if you know the version then you can do that

0

https://code.sololearn.com/c80AU8KRmq0q/?ref=app

0

Or if you like one line codes print(f"Python version: {__import__('sys').version}")