Python basics
  • Introduction
  • Print function, strings, variables and development environment
  • Data types and operators in Python
  • Assignment 1
  • Getting user input and commenting
  • If/Elif/Else Conditions
  • Assignment 2
  • Data Structures
  • Loops
  • Assignment 3
  • Functions
  • Errors and Exceptions
  • Assignment 4
  • Object Oriented Programming
  • Manipulating files
  • Assignment 5
  • Modules
  • Installing packages
  • Scope
  • String formatting and List slicing
  • Ternary operators , *args and **kwargs
  • Guidelines for writing Pythonic Code
  • The End
Powered by GitBook
On this page

Was this helpful?

Assignment 4

Use a while loop to make a real calculator, which catches errors and displays a proper error message, and try to put the logic inside a function. Try not to make your code more than 30 lines.

BONUS: Store recent equations in a list and display when asked.

PreviousErrors and ExceptionsNextObject Oriented Programming

Last updated 6 years ago

Was this helpful?