From b89d8ed6c0f546251a33537a8e893ab396e822f5 Mon Sep 17 00:00:00 2001 From: 1305Tanmay <72162313+1305Tanmay@users.noreply.github.com> Date: Sat, 10 Oct 2020 20:27:01 +0530 Subject: [PATCH] My First Python Program hello this is my first python programm created by me and it can find a average of the number you will give and find the square of the number you will give :). --- My first python project.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 My first python project.py diff --git a/My first python project.py b/My first python project.py new file mode 100644 index 0000000..1c289af --- /dev/null +++ b/My first python project.py @@ -0,0 +1,18 @@ +print("hello freinds i am first python program of Tanmay") +print("so first i will find avg of a number you give me") + +a = input("Enter first number : ") +b = input("Enter second number : ") +a = int(a) +b = int(b) +avg = (a + b)/2 +print("the average of your number is",avg) + +print("Now i will square the number you give me") + +a = input("Enter a number :") +a = int(a) +sq = a*a +print("The square of your number is",sq) + +print("Thanks for using me :)")