Comments (1)
Hi there. It looks REALLY close to the same as the code here:
while cmd != 'x' and cmd:
cmd = input('[L]ist entries, [A]dd an entry, E[x]it: ')
cmd = cmd.lower().strip()
if cmd == 'l':
list_entries(journal_data)
elif cmd == 'a':
add_entry(journal_data)
elif cmd != 'x' and cmd:
print("Sorry, we don't understand '{}'.".format(cmd))
But the difference is if you press x to exit. I think in your loop you will see two lines:
"Sorry we don't understand X"
"Done, goodbye"
Whereas in mine, you'll only see the last line on exit. Is that right from reading the image and executing it in my mind? :)
Best,
Michael
from python-jumpstart-course-demos.
Related Issues (20)
- App 10, OMBD API is private? HOT 2
- Weather underground (app 5) no longer supports the base URL HOT 2
- csv.DictReader returns OrderedDict in 3.6 HOT 1
- Test issue
- Text search documents HOT 3
- 'journal.py' not found HOT 7
- Beautiful soup is not supported/ not found HOT 8
- File Searcher app: Use os.scandir instead of os.listdir with Python 3.6+ HOT 3
- Wunderground url problem HOT 1
- LOLCat Factory, Windows HOT 3
- 'Override method in object' and others... Wizard Battle (7) HOT 3
- Birthday app exception when born on 29th Feb HOT 6
- www.underground.com Changed their content engine? HOT 2
- Escape characters in Windows? HOT 4
- Want to add more instructions for creating Python virtualenv in Windows. HOT 4
- Jan 2020 Wunderground changed their site so the recorded presentation doesn't work HOT 4
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 304: invalid start byte HOT 1
- Weather underground url structure has changed HOT 1
- Weather client server error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-jumpstart-course-demos.