Skip to content

sadhvikanekar/Python-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Assignment 1 – Module 2: Basic Python Concepts

This repository contains two Python scripts that I created as part of Assignment 1 for Module 2. The tasks mainly focus on practicing basic input, simple operations, and printing output.

Task 1: Basic Mathematical Operations

This script asks the user to enter two numbers and then performs the four basic math operations on them—addition, subtraction, multiplication, and division. The results of each operation are displayed on the screen. I also included a small check to avoid dividing by zero so the program doesn’t crash.

File: task1_math_operations.py

Task 2: Personalized Greeting

This program takes the user’s first and last name, combines them into a full name, and then prints a personalized greeting message. It’s a simple task but a good way to practice working with strings and user input.

File: task2_greeting.py

How to Run the Programs

Make sure you have Python installed on your system.

Open a terminal or command prompt in the folder where the files are saved.

Run the script by typing: python task1_math_operations.py or python task2_greeting.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages