Exercise 1: Calculator using Python (Solution) | Python Tutorial - Day #8

Exercise 1: Calculator using Python (Solution) | Python Tutorial - Day #8

100 Days Of Code: Exercise 1 Solution and Shoutouts

Introduction to the Video

  • The speaker expresses excitement about the "100 Days Of Code" initiative and plans to give shoutouts to participants who solved exercise 1.
  • The video transitions to a demonstration on the computer screen, focusing on solutions from Day #8 while also reviewing contributions from Day #7.

Acknowledging Participants

  • The speaker acknowledges viewers who posted their solutions in the comments, emphasizing the rapid engagement of participants.
  • There is a call for enthusiasm in completing the "100 Days Of Code" series, highlighting that many are eager to participate.

Overview of Exercise 1

  • The exercise involves creating a simple calculator with basic operations: addition, subtraction, multiplication, and division.
  • The speaker mentions that some viewers may find this exercise easy but reassures them that complexity will increase over time as they progress.

Demonstrating Calculator Functionality

  • A practical example is provided where variables a and b are defined for calculations.
  • The speaker explains how to format output strings using commas for clarity when printing results of calculations.

Utilizing Shortcuts in Coding

  • A shortcut (Alt + Shift + ↓) is introduced for replicating lines in VSCode, encouraging viewers to adopt efficient coding practices.
  • Multiple cursors can be created by holding down the Alt key while clicking, allowing simultaneous editing across multiple lines.

Finalizing Solutions and Community Engagement

  • The speaker summarizes outputs from various operations performed on numbers like 50 and 3.
  • Transitioning back to community interaction, the speaker reloads comments looking for new solutions submitted by participants.

Closing Remarks and Further Engagement

  • As more comments are reviewed, there’s an emphasis on maintaining high energy within the community during this coding journey.

Understanding Disqualification in Programming

Key Concepts of Disqualification

  • The speaker emphasizes that using concepts not taught in the course leads to disqualification. They clarify that if something hasn't been mentioned, it may not be grounds for disqualification at this moment.
  • The importance of ensuring that the Repl runs correctly is highlighted, regardless of the tools or methods used by the programmer.

Error Handling and User Interface

  • A shout-out is given to "Suryansh Kumar" for their Repl, which has received positive feedback despite an error due to incorrect operation input.
  • The speaker notes common user mistakes and stresses the need for a clear user interface to prevent confusion and blame on developers.

Celebrating Contributions from Participants

Acknowledgments and Feedback

  • Multiple participants are recognized for their efforts, including "piyushgoyall," who impressively integrated images into their Repl.
  • While reviewing "piyushgoyall's" code, the speaker questions the use of "Input," suggesting it was not covered yet but acknowledges its necessity.

Looking Ahead: Course Progression

Future Expectations

  • The speaker hints at more complex topics in upcoming videos, addressing concerns about current exercises being too easy.
  • Encouragement is given to viewers to remain patient as they progress through more challenging material in future lessons.

Conclusion and Resources

Video description

Python Udemy Course: https://goharry.in/python Get this course at 90% Discount if you use this link Python is one of the most demanded programming languages in the job market. Surprisingly, it is equally easy to learn and master Python. This python tutorial for absolute beginners in Hindi series will focus on teaching you python concepts from the ground up. Access the Playlist: https://www.youtube.com/playlist?list=PLu0W_9lII9agwh1XjRt242xIpHhPT2llg Link to the Repl: https://replit.com/@codewithharry/08-Day8-Exercise-1-Create-a-Calculator-Solution#main.py Join Replit the browser-based IDE used in this course - https://join.replit.com/code-with-harry-100-doc ►Checkout my English channel here: https://www.youtube.com/channel/UC7btqG2Ww0_2LwuQxpvo2HQ ►Instagram: www.instagram.com/codewithharry python, C, C++, Java, JavaScript and Other Cheetsheets [++]: Playlist: https://www.youtube.com/playlist?list=PLu0W_9lII9agrsRZjFECeFuWY5ev2pQlk ►Learn in One Video[++]: Python[15 Hr]: https://www.youtube.com/watch?v=gfDE2a7MKjA&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Python Advance[3.5 Hr]: https://www.youtube.com/watch?v=61a7UkDO50s&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Python[1 Hr]: https://www.youtube.com/watch?v=qHJjMvHLJdg&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Python[2 Hr]: https://www.youtube.com/watch?v=ihk_Xglr164&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Python[15 Min]:https://www.youtube.com/watch?v=fr1f84rg4Nw&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 JavaScript[1 Hr]: https://www.youtube.com/watch?v=onbBV0uFVpo&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 C[1.3 Hr]-https://www.youtube.com/watch?v=YXcgD8hRHYY&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 php[1 Hr]: https://www.youtube.com/watch?v=xW7ro3lwaCI&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 php[2.3 Hr]:https://www.youtube.com/watch?v=1SnPKhCdlsU&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 php[Project]- https://www.youtube.com/watch?v=-al2bECumKg&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 HTML[30 Min]:https://www.youtube.com/watch?v=E3ByCRqE7Lo&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 CSS[8.5 Hr]:https://www.youtube.com/watch?v=Edsxf_NBFrw&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 CSS[1.4 Hr]:https://www.youtube.com/watch?v=u5-K_ua9sOw&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Wordpress[3.2 Hr]:https://www.youtube.com/watch?v=GlLRYml8mCY&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Angular[2 Hr]:https://www.youtube.com/watch?v=0LhBvp8qpro&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Java[2.3 Hr]:https://www.youtube.com/watch?v=rV_3Lewxx6o&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Web Scraping[1 Hr]:https://www.youtube.com/watch?v=uufDGjTuq34&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 MongoDB[2 Hr]:https://www.youtube.com/watch?v=oSIv-E60NiU&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Numpy[1 Hr]:https://www.youtube.com/watch?v=Rbh1rieb3zc&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Android Dev[12 Hr]- https://www.youtube.com/watch?v=mXjZQX3UzOs Linux[1 Hr]:https://www.youtube.com/watch?v=_tCY-c-sPZc&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 JQuery[1.1 Hr]:https://www.youtube.com/watch?v=YFlx1C8XwR0&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 Git and GitHub[1.1 Hr]:https://www.youtube.com/watch?v=gwWKnnCMQ5c&list=PLu0W_9lII9ahKZ42vg2w9ERPmShYbYAB7 ►Complete course [playlist]: React: https://www.youtube.com/playlist?list=PLu0W_9lII9agx66oZnT6IyhcMIbUMNMdt Python-https://www.youtube.com/playlist?list=PLu0W_9lII9agICnT8t4iYVSZ3eykIAOME OOP Python-https://www.youtube.com/playlist?list=PLu0W_9lII9ahfRrhFcoB-4lpp9YaBmdCP Java:https://www.youtube.com/playlist?list=PLu0W_9lII9agS67Uits0UnJyrYiXhDS6q JavaScript- https://www.youtube.com/playlist?list=PLu0W_9lII9ajyk081To1Cbt2eI5913SsL PHP-https://www.youtube.com/playlist?list=PLu0W_9lII9aikXkRE0WxDt1vozo3hnmtR C-https://www.youtube.com/playlist?list=PLu0W_9lII9aiXlHcLx-mDH1Qul38wD3aR C++-https://www.youtube.com/playlist?list=PLu0W_9lII9agpFUAlPFe_VNSlXW5uE0YL Git & GitHub-https://www.youtube.com/playlist?list=PLu0W_9lII9ahVQekD7ePHmnirTePXwIln Android Dev- https://www.youtube.com/playlist?list=PLu0W_9lII9aiL0kysYlfSOUgY5rNlOhUd Python GUI- https://www.youtube.com/playlist?list=PLu0W_9lII9ajLcqRcj4PoEihkukF_OTzA Web Development- https://www.youtube.com/playlist?list=PLu0W_9lII9agiCUZYRsvtGTXdxkzPyItg Python Django:https://www.youtube.com/playlist?list=PLu0W_9lII9ah7DDtYtflgwMwpT3xmjXY9 Projects Using HTML, CSS & Javascript- https://www.youtube.com/playlist?list=PLu0W_9lII9aiQiOwthuSvinxoflmhRxM3 Data Structure and Algo:https://www.youtube.com/playlist?list=PLu0W_9lII9ahIappRPN0MCAgtOu3lQjQi Follow Me On Social Media ►Website (created using Django Rest & Angular): https://www.codewithharry.com ►Facebook: https://www.facebook.com/CodeWithHarry ►Instagram: https://www.instagram.com/codewithharry/ Twitter: https://twitter.com/CodeWithHarry Comment "#HarryBhai" if you read this 😉😉