Skip to content

nykjainprojects/Basic-Python-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Basic-Python-Projects

This Repository contains basic python projects for beginners

Task 1: Perform Basic Mathematical Operations

Problem Statement: Write a Python program that does the following:

  1. Takes two numbers as input from the user.
  2. Performs the basic mathematical operations on these two numbers:
  • Addition
  • Subtraction
  • Multiplication
  • Division
  1. Displays the results of each operation on the screen.
Num1 = float(input("Enter the first number : "))
Num2 = float(input("Enter the second number : "))

Addition = Num1 + Num2
Subtraction = Num1 - Num2
Multiplication = Num1 * Num2
Division = Num1 / Num2

print("Addition : ", Addition)
print("Subtraction : ", Subtraction)
print("Multiplication : ", Multiplication)
print("Division : ", Division)

Task 2: Create a Personalized Greeting

Problem Statement: Write a Python program that:

  1. Takes a user's first name and last name as input.
  2. Concatenates the first name and last name into a full name.
  3. Prints a personalized greeting message using the full name.
firstname = input("Enter your first name : ")
lastname = input("Enter your last name : ")

print("Hello,", firstname, lastname,"! Welcome to the python program.")

About

This Repository contains basic python projects for beginner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages