Python - Command line arguments and user keyboard input

Опубликовано: 09 Март 2022
на канале: Multilingual Programming
50
like

Video Chapters (table of content with clickable links into a specific part of the video)
00:00 Introduction about the video content
00:40 Prerequisites (you should have some programming skills in at least some language)
01:03 Command prompt (showing the Python version, creates new directory, starts Visual Studio Code)
01:38 Creates a file with a "Hello World" program
02:04 Executes the "Hello World" program from the command prompt
02:15 Replaces the implementation with code receiving arguments from the command line and the keyboard
05:14 Executes the updated program
05:20 Moves the source code into "if _name_ == '__main__':"

Please note that you can choose to show english subtitles for the videos.

Currently (when this video was published) there are not many videos in the below playlists but please remember to subscribe to this channel if you think you are interested in future videos which will become added to the play lists.

Playlists for "Program arguments from command line and keyboard input" for different programming languages:
Playlist for the videos with english voice and english subtitles:
   • Program arguments from command line a...  
Playlist for the videos with swedish voice and swedish subtitles:
   • Program argument från kommandoraden o...  

Python playlist (english):
   • Python - Command line arguments and u...  
Python playlist (swedish):
   • Python - Program argument från komman...  

Python
https://www.python.org

Visual Studio Code (cross-platform editor):
https://code.visualstudio.com/download


Python documentation relevant for the video content:

sys.argv (the list with program arguments from the command line)
https://docs.python.org/3.9/library/s...


input (Python 3, keyboard input)
https://docs.python.org/3.9/library/f...

raw_input (Python 2, keyboard input)
https://docs.python.org/2.7/library/f...

f-strings (string interpolation)
https://www.python.org/dev/peps/pep-0...

str.format
https://docs.python.org/3/library/std...

%-formatting
https://docs.python.org/3/library/std...

Template strings
https://docs.python.org/3/library/str...

if _name_ == '__main__':
https://docs.python.org/3/library/__m...


Смотрите видео Python - Command line arguments and user keyboard input онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Multilingual Programming 09 Март 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 50 раз и оно понравилось like людям.