4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills
Difficulty
beginnerRepository
Click to openVideo
Not available
Live demo
Not available
Average duration
4 hrs
Technologies
Disneyland for procrastinators and lazy people.
This project is ideal to are avoiding someone annoying, it takes no more than 20 lines of code and it can save you for the rest of your life!
We wanted a project that used very little Python but still with a very fun application, the excuse generator takes 20 lines of code, is super simple to understand and is the perfect first-ish project for any beginner developer.
Please create a python script that generates an excuse each time it is runned.
How can we generate an excuse? How are sentences build?
The idea is to generate each part of the sentence randomly to come up with great excuses!
Do not clone this repository.
a) If using Gitpod (recommended) you can clone the boilerplate by clicking here.
b) If working locally type the following command from your command line:
1git clone https://github.com/4GeeksAcademy/flask-rest-hello`.
1$ python3 app.py
💡 Important: Remember to create a new repository, update the remote (git remote set-url origin <your new url>
), and upload the code to your new repository using add
, commit
and push
.
app.py
file with one excuse hard-coded in one variable.1excuse = 'The dog eat my homework when I finished'
1who = ['the dog','my granma','his turtle','my bird'] 2what = ['eat','pissed','crushed','broked'] 3when = ['before the class','right in time','when I finished','during my lunch','while I was praying']
print
function.Python.
This exercise covers the following fundamentals:
4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills
Difficulty
beginnerRepository
Click to openVideo
Not available
Live demo
Not available
Average duration
4 hrs
Technologies