Python - Command Line Arguments | sys.argv

  Рет қаралды 18,632

Wrt Tech

Wrt Tech

Күн бұрын

Пікірлер: 17
@jo_rs
@jo_rs 2 жыл бұрын
Thankyou so much this helped✨
@cincyohio1946
@cincyohio1946 2 жыл бұрын
Thank you so much for this video!
@EdyStyle
@EdyStyle Жыл бұрын
Thank you man, it helped me a lot!
@wrttech422
@wrttech422 Жыл бұрын
Glad to hear it!
@U-ITacHi888
@U-ITacHi888 Жыл бұрын
Hi, can you help me if i need 2 command line arguments. First arguments is count the occurrence of a letter in that file. Second argument find a word if it exists in that file. I try run both Arguments but keep getting index error? I know how to run 1 command line argument but not 2
@wrttech422
@wrttech422 Жыл бұрын
paste your code below and ill look at it. Also, tell me what you're typing into the command line
@U-ITacHi888
@U-ITacHi888 Жыл бұрын
@@wrttech422 I'm learning a Python & Cyber Security beginner course (career change) & my lecturer want us to use Linux nano. Import sys & write 2 sys.argv and execute it. 1 was count the occurrence of a letter in the file opened & the other was to check for a specific word in that file. I'm only new at Python & just using IDLE (pycharm). I'm not to familiar with Linux & not confident at use nano which is a text editor. Ill copy paste the code when i get home.
@U-ITacHi888
@U-ITacHi888 Жыл бұрын
@@wrttech422 nvm, someone on Stackoverflow has explained it to me. thanks champ. Thanks for replying to my question.
@erjin999
@erjin999 10 ай бұрын
Thank you for the nice and simple explanation that covered everything I needed about this subject!
@ambrerema3341
@ambrerema3341 10 ай бұрын
thank you so much, I had trouble understanding this at first but with your video it's gonna be a lot easier
@Sam-jy8fz
@Sam-jy8fz 4 ай бұрын
Thanks u bro i was literally 2 hours on searching the answer to this problem …
@wrttech422
@wrttech422 4 ай бұрын
Glad I could help!
@kenellem.6233
@kenellem.6233 7 ай бұрын
Super helpful. Thank you!
@kyanamaaf6314
@kyanamaaf6314 Жыл бұрын
Hello, is this any different for mac users?
@luis_schizo
@luis_schizo 3 ай бұрын
no
@pablocastaneda9699
@pablocastaneda9699 Жыл бұрын
Excellent video my man!
@wrttech422
@wrttech422 Жыл бұрын
Appreciate it!
Run Python Scripts With Command Line Arguments Using sys.argv (With Examples)
23:33
Fabio Musanni - Programming Channel
Рет қаралды 10 М.
05 sys argv
12:28
David Blaikie
Рет қаралды 17 М.
Ozoda - Lada ( Ko’k jiguli 2 )
06:07
Ozoda
Рет қаралды 15 МЛН
LIFEHACK😳 Rate our backpacks 1-10 😜🔥🎒
00:13
Diana Belitskay
Рет қаралды 3,9 МЛН
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 16 МЛН
Argparse Basics - How I run my scripts via the Command Line
6:45
John Watson Rooney
Рет қаралды 77 М.
Argument Parsing with argparse in Python
11:27
NeuralNine
Рет қаралды 15 М.
Python Argparse Module - Create CLI and Run Scripts With Command Line Arguments
26:16
Fabio Musanni - Programming Channel
Рет қаралды 7 М.
*Args and **Kwargs in Python
3:49
b001
Рет қаралды 277 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 543 М.
Command Line Arguments in Python - How to Read Command Line Arguments in Python
7:04
Write Your Own Bash Scripts for Automation [Tutorial]
16:35
Null Byte
Рет қаралды 766 М.
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 199 М.