Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
start to learn Python
#1
Hi all, I would like to start to learn Python.
I kindly ask you to give me some advices, please:

- Good tutorial for the beginners;
- Good and free IDE to start; windows 10 x64
- May be some another advices. You are welcome.

I will read topics, but I also will be pleased when you answer here.
thanks a lot
Reply
#2
Of course the answers are all going to be biased, but here's mine:
Counses:
IDE:
Other
Package repository: https://pypi.org/
buran likes this post
Reply
#3
Thanks a lot Big Grin
Reply
#4
Hi all. It seems to me that I installed VS and python
and tried to write the first program and would like to run it.
But I can not. How can I start to run program at this ide and where I will see the result.
Could you tell me please.
I would like to ask you, if I did everything correct? see the attachment, please

P.S sorry for this question
screen shot

https://ibb.co/SX7sCfv
screen shot
Reply
#5
On top menu right hand side there is a Right pointing arrow. Click that to run.

you can also right click in code window and then left click 'Run python file in terminal'

If you followed the VSCode from start tutorial, you should have all the necessary packages installed.
Reply
#6
thanks
I did this earlier, but something is wrong. May be something is not installed properly?

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\>  & 'C:\Users\Viktor S\AppData\Local\Programs\Python\Python39\python.exe' 'c:\Users\Viktor S\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\lib\python\debugpy\launcher' '55781' '--' 'Untitled-2'
Traceback (most recent call last):
  File "C:\Users\Viktor S\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Viktor S\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "c:\Users\Viktor S\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\lib\python\debugpy\__main__.py", line 45, in <module>
    cli.main()
  File "c:\Users\Viktor S\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 444, in main
    run()
  File "c:\Users\Viktor S\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 285, in run_file
    runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))
  File "C:\Users\Viktor S\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 267, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\Users\Viktor S\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 237, in _get_code_from_file
    with io.open_code(decoded_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Untitled-2'
PS C:\> 
Reply
#7
It also is easier if you install Code Runner.
Also look at VS Code from start
Here a overview of my setup with Code Runner used.
[Image: vSxNpA.png]
Reply
#8
thanks but...


Error:
[Running] python -u "C:\Users\VIKTOR~1\AppData\Local\Temp\tempCodeRunnerFile.python" Python [Done] exited with code=9009 in 0.175 seconds
Reply
#9
I think, that something is not installed properly or I must correct maybe the PATH or?
Maybe somebody knows what I have to change? thanks
Reply
#10
Look at this it's the same for 3.9.
So you test that python and pip command work from anywhere in cmd

Then in setting.json VS Code.
"php": "php",
"python": "$pythonPath $fullFileName",
"perl": "perl",
Then try run code again in VS Code.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to learn python to apply it in my work? DavyAnt 1 851 Aug-24-2023, 10:46 PM
Last Post: Larz60+
  How to start to learn and use python Zangolo 6 1,258 Jul-15-2023, 09:37 AM
Last Post: Gribouillis
  Learn Python via Zoom Meetings? davidorlow 1 2,365 Jun-16-2021, 01:01 AM
Last Post: Larz60+
  learn Python Naheed 6 4,074 May-04-2021, 07:23 AM
Last Post: Naheed
  Newbie to Python - Where to start lasek723 4 3,011 Sep-15-2020, 08:11 PM
Last Post: lasek723
  what programming language to learn other than python in real mass-production product? Kai 1 2,111 Apr-12-2020, 04:40 AM
Last Post: Larz60+
  start learning python robbyq 5 3,021 Jan-21-2020, 03:07 AM
Last Post: michael1789
  Learn Python by doing? Coastal 2 2,375 Jan-16-2020, 06:24 PM
Last Post: Karen1
  WHich is a good site/tutorial to learn Python for beginners? deepakdeshp 7 4,955 Oct-11-2019, 06:46 AM
Last Post: wavic
  how to start python programing Sharafuzzaman 1 2,253 Nov-04-2018, 08:58 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020