Skip to content

Latest commit

Β 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Assignment 1: Python Programs

Module 2: Basic Python Concepts

This repository contains solutions for Assignment 1, consisting of two beginner-level Python programming tasks. The aim is to demonstrate basic input/output operations, arithmetic calculations, and string formatting in Python.


πŸ“Œ Task 1: Basic Mathematical Operations

This Python script accepts two numbers from the user and performs the following mathematical operations: Addition, Subtraction, Multiplication, Division

πŸ“„ File Name

assignment_1-task_1.py

▢️ How to Run

  1. Open a terminal.
  2. Run the program using:
    python assignment_1-task_1.py
  3. Follow the prompts to input numbers.

πŸ’‘ Example Output

Enter the first number: 1  
Enter the second number: 2  
Addition:  3  
Subtraction:  -1  
Multiplication:  2  
Division:  0.5  

πŸ“Œ Task 2: Personalized Greeting

This Python script collects the user's first and last name and displays a personalized greeting message.

πŸ“„ File Name

assignment_1-task_2.py

▢️ How to Run

  1. Open a terminal.
  2. Run the program using:
    python assignment_1-task_2.py
  3. Follow the prompts to input your name.

πŸ’‘ Example Output

Enter your first name: Shashank  
Enter your last name: Singh Patel  
Hello, Shashank Singh Patel! Welcome to the Python Program.  

πŸ“ Repository Structure

Python-Assignmetn-1/
β”œβ”€β”€ assignment_1-task_1.py
β”œβ”€β”€ assignment_1-task_2.py
└── README.md

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages