New course! Every coder should learn Generative AI!
Try a free lesson0
Help me help me help me please
Guys I am trying to learn python 3.X but the sololearn app for this teaches how to work in 2.X . Please tell me how to change the settings to 3.X in the app.
21 Answers
+ 12
It clearly says that the tutorials are for Python 3.
+ 2
>>> print ("hello world")
hello world
This is python3 code (python3 requires parentheses, since print is a function in python3)
As other people have already said, if you just keep repeating something ("it's python 2!!!11"), it will not make it true. Tell us exactly what code you're having trouble with, and we will do our best to help you!
+ 1
make your code playground public
+ 1
Because giving us the link to your playground would have been too easy on us, eh? :)
+ 1
https://code.sololearn.com/camDm8Q0TiKi/?ref=app
>>> print("hello world")
hello world
That is python3 code.
However, the ">>>" are not part of the code - that is the prompt of the interactive python interpreter. So you need to remove them.
Also, the second line is not part of the code - it is showing you what output you would get when running that code. Remove that as well.
0
when I used the code suggested by the app it doesn't work
0
there is some glitch
0
it's python 3.x already. link us to the code
0
when I went google I got to know that the code sololearn python 3 suggested was for 2.X
0
>>> print ("hello world")
hello world
0
I've downloaded the Python 3.x IDLE from Python.org onto my computer and haven't had issues so far
0
this is the code the app suggested
0
print is in every python, you just happened to come across an article on python 2.7
0
this is the name of the public code playground where I wrote the code 'forge'
0
search the playground named 'forge' from here all prob are started
0
ok thank guys I got it
0
thanks*
- 1
wait a sec
- 1
whenever I run this code it says 'Invalid Syntax' but when I used the code print ("hello world") it worked fine
- 1
oh