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 Жыл бұрын
paste your code below and ill look at it. Also, tell me what you're typing into the command line
@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 Жыл бұрын
@@wrttech422 nvm, someone on Stackoverflow has explained it to me. thanks champ. Thanks for replying to my question.
@erjin99910 ай бұрын
Thank you for the nice and simple explanation that covered everything I needed about this subject!
@ambrerema334110 ай бұрын
thank you so much, I had trouble understanding this at first but with your video it's gonna be a lot easier
@Sam-jy8fz4 ай бұрын
Thanks u bro i was literally 2 hours on searching the answer to this problem …