Skip to content

diegot-code/Python-Assignment-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Simple Calculator Assignment

Overview

This Python assignment involves creating a basic calculator program to perform arithmetic operations based on user input.

Learning Objectives

  • Function Usage: Define and use functions in Python.
  • User Input: Gather input using input().
  • Conditionals: Utilize if/else for operation handling.
  • Error Handling: Implement basic error handling.
  • Documentation: Document code with concise comments.

Instructions

  1. User Input: Collect two numerical values.
  2. Operation Input: Obtain the desired arithmetic operation.
  3. Function: Implement a function for arithmetic operations.
  4. Output: Display the result.

Code Structure

  • main() Function: Orchestrates program flow.
  • math() Function: Performs arithmetic operations.

Usage

  1. Run the script.
  2. Enter values and choose an operation.
  3. View the calculated result.

About

Build a Simple calculator using Python, no line limit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages