What I learnt Today
1.Build a simple calculator app project.
- Tracked,commited and pushed the project to public repo python-concepts.
About What I Did Today
1.Allow the user to enter 2 numbers for it to calculate.
2.By default input returns a atring so we have to convert the input to a float or integer.
3.Create a short menu that displays the operations that our project will do.
4.Create an if-else decision condition so that the operations we pass thwm in the elif and else conditions.
5.Run our python script.
Challenges I faced today
1.I didn't know that by default input whatever the value by deafult it returns a string.
How i solved this challenge
Converted the input of the user to a float.
Resources I used
1.Refresher python series by Bonaventure Ogeto on youtube
What's Next
1st week of Python series is done next I'll learn about operators and Expressions
Top comments (2)
Hey. So here's a little bit of suggestion to add code snippets to your blogs, in case you need it.
You could wrap your codes around backticks (`) and create clean code snippets.
like
print("Hello World")
or triple backticks, depending on what you need to show in your blog
python
print("Hello World")
Ohhhh thankyou will impliment in the next posts💯