0

Python

Which python version does solo learn use<

2nd Mar 2022, 6:09 PM
SĂĄpi Tibor
SĂĄpi Tibor - avatar
6 Answers
0
It is mentioned in the first lesson of the course. Read it carefully. If you want to know the exact version, go to Code section, click +, select Python. Then run this code: import sys print(sys.version)
2nd Mar 2022, 6:12 PM
Lisa
Lisa - avatar
0
Thanks but i dont know why the visual studio dont runs the code it has python 3.9 and .NET 4.8
2nd Mar 2022, 6:52 PM
SĂĄpi Tibor
SĂĄpi Tibor - avatar
0
Which code? Show it to us so we know what you are referring to
2nd Mar 2022, 6:59 PM
Lisa
Lisa - avatar
0
def even(x) if x%2==0: print("yes) else print("No")
2nd Mar 2022, 7:05 PM
SĂĄpi Tibor
SĂĄpi Tibor - avatar
0
The indentation is wrong. Please review functions and if-ekse statements. The functions code needs to be indented by 1 level, the content of if and else by one more level. if and else need to be on the same level of indentation. You forgot the : after else and the closing " after yes.
2nd Mar 2022, 7:08 PM
Lisa
Lisa - avatar
0
thank you else was the wrong and :
2nd Mar 2022, 7:11 PM
SĂĄpi Tibor
SĂĄpi Tibor - avatar