0

So how do I create python file and be able to code in it?

Yeah, this probably a silly question but hear me out. I completed the introduction to python course and wanted to code outside of sololearn sandbox and downloaded Python on my pc. I opened python, tried to write: print('hello world') and it said: "No Python documentation found for 'help()'. Use help() to get the interactive help utility. Use help(str) for help on the str class." What should I do so I can code in python app?

27th Nov 2024, 10:22 AM
Sher Chel
Sher Chel - avatar
3 Respuestas
+ 4
If you are new to coding, try to keep it simple, download and install python from the official website https://www.python.org, you can open the default editor IDLE and write a python file with a py extension. When you get more experience, you can try different editor such as VSCode or PyCharm, or other text editor such as Notepad++ to write your code.
27th Nov 2024, 1:46 PM
Wong Hei Ming
Wong Hei Ming - avatar
+ 3
When you launch Python on your computer, you technically can put in commands. But that is not really an editor environment. Print("Hello World") will work if your Python is version 3 or higher. Python 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> print("hello world") hello world >>> But this is not the normal means for coding Python on your computer. Normally you would use a text editor such as VSCode or whatever you like. Make a file with the .py extension. Then you can run that file. Like this: hello.py python hello.py You could also run the Python script inside your editor if your editor supports a terminal. VSCode has that. Create your file in VSCode and you can run it in the terminal window. If you have Python extensions installed, there will even be a play button.
27th Nov 2024, 1:00 PM
Jerry Hobby
Jerry Hobby - avatar
+ 2
Check this out. This is the official website of sandbox which will help you in using python. Happy coding!! https://codesandbox.io/docs/tutorial/getting-started-with-python
27th Nov 2024, 11:16 AM
Aysha
Aysha - avatar