+ 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

1st Apr 2021, 3:45 AM
K.S.S. Karunarathne
K.S.S. Karunarathne - avatar
10 odpowiedzi
+ 6
https://code.sololearn.com/cYW0nVSOFufJ/?ref=app
1st Apr 2021, 3:52 AM
Kǟrɨsɦmǟ ❥
Kǟrɨsɦmǟ ❥ - avatar
1st Apr 2021, 4:37 AM
BroFar
BroFar - avatar
+ 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
1st Apr 2021, 4:46 AM
BroFar
BroFar - avatar
1st Apr 2021, 4:49 AM
BroFar
BroFar - avatar
+ 3
Nishit Katole 33 VII C This isn't a way to get it.
1st Apr 2021, 4:25 AM
K.S.S. Karunarathne
K.S.S. Karunarathne - avatar
+ 2
Nishit Katole 33 VII C Ofcourse 😂😂😂
1st Apr 2021, 4:27 AM
K.S.S. Karunarathne
K.S.S. Karunarathne - avatar
+ 2
Thanks BroFar sir
1st Apr 2021, 4:38 AM
K.S.S. Karunarathne
K.S.S. Karunarathne - avatar
+ 1
Alright, but if you know the version then you can do that
1st Apr 2021, 4:26 AM
Nishit Katole 33 VII C
Nishit Katole 33 VII C - avatar
1st Apr 2021, 4:24 AM
Nishit Katole 33 VII C
Nishit Katole 33 VII C - avatar
0
Or if you like one line codes print(f"Python version: {__import__('sys').version}")
2nd Apr 2021, 8:12 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar