Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sedaklnc/hangmangame
https://github.com/sedaklnc/hangmangame
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sedaklnc/hangmangame
- Owner: sedaklnc
- Created: 2021-03-10T23:58:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-28T20:46:29.000Z (about 2 years ago)
- Last Synced: 2024-03-25T17:17:39.740Z (10 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hangmanGame
Before using the sys module I ran this code like this python hangman.py.When you run the code after the using the sys module you will see ['hangman.py'].As you see sys.argv command gives a list.First item of this list is name of the our project file name.
I ran the same program as follows ['hangman.py,'cpsc231-lexic.txt']. I added second element to the list which is txt.file name.Then I assigned the filename to the 2nd element of sys.argv in the code,as a result the filename we called was 'cpsc231-lexic.txt'.
You can't run this code like python hangman.py anymore.You must write ==> python hangman.py cpsc231-lexic.txt if you don't write you will give an error message.
HAVE FUN!