P_14 Operators in Python | Arithmetic Operators | Python Tutorials for Beginners
ฝัง
- เผยแพร่เมื่อ 11 ก.ย. 2024
- Dear Aspirants!
Get ready for the Unacademy x GATE ACADEMY COMBAT where you can analyze your preparation for GATE 2023/24 & can win exciting gifts. 💻📱
- Get Scholarships and Rewards from a pool of over 30 Crore.
- Up to 100% Scholarship on Unacademy Plus Subscription.📝📝
- Top 3000 rankers get their GATE 2023 exam registration fees sponsored by Unacademy
- Top Rankers get their 1 year Engineering college tution fees sponsored by Unacademy
Use Code JKL10 to enroll
To Enroll Yourself, Visit:
👉👉CS & IT: unacademy.com/...
👉👉EE & ECE: unacademy.com/...
CIVIL: unacademy.com/...
MECH & CHEM: unacademy.com/...
For all Information, visit:
unacademy.com/...
*********************************************
Notes of Today's Class: drive.google.c...
Python Tutorials for Beginners: • Python - Basic to Advance
***********************************************
Connect & Contact Me:
My Second Channel Link: bit.ly/354n7C7
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
*************************************************
More Playlists:
C Programming Tutorials: • Programming in C
C++ Programming Tutorials: • Lec 1: How to Install ...
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Python Full Course: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
#python #pythonforbeginners #operatorsinpython #pythonprogramming #jennyslectures
weight=int(input("enter your weight in kg :"))
height=float(input("enter your height in metern :"))
BMI=weight/(height**2)
print(BMI)
Thanks
a= float(input("Enter Weight in KG"))
b= float(input("Enter height in Meter"))
print("Your BMI is"+ str(a/(b**2)))
Today's assignments::
1st assignment::
weight=int(input("enter the weight in kg "))
height=float(input ("enter the height in meters "))
BMI=weight/(height**2)
print("Body mass index is equal to ",BMI)
2nd assignment::
5+2*(3-1)+10/5
=11.0
is it correct
weight = input("enter your weight here :")
height = input("enter your height here :")
print("your BMI = " + str(float(weight)/((float(height))*float((height)))))
No bro it's not wrking
weigth = int(input("enter your weigth in kg:" )
Heigth = float(input("enter your heigth in meters:")
BMI = weigth/(heigth**2)
print("your BMI is + " , " + str(BMI) )
It is correct one copy and paste
@@Ebookstore.. no bro it will give error
@@pianobyanuj mine also worked..but by your way the code can be written in less space
you took examples are very helpful for easy to understand like {1) water-------->stores in bucket = variable, 2) changing milk, tea with help of 3rd glass= swap values } i hope u make videos with using real examples like this for better imagination... and pls upload videos daily as soon as possible bcz i am eagarly waiting for ur python videos... thanks a lot💖
Finally after long time 🙂🙂back to python . Thank you ma'am
Weight=int(input("Weight in kgs = "))
Height=float(input("Height in mtr = "))
BMI= Weight/Height**2
print(BMI)
Thanks so much
Bro I have done same thing but output not getting, how bmi will be calculated?
@@vikramjha638 try the same u'll get
@@ramaraju1469 got bro😊
weight = int(input("Enter your weight in kilogram(kg):
"))
height = float(input("Enter your height in metres(m):
"))
BMI = weight / (height **2)
print(f"Your BMI is {BMI}")
in the last line inside print function what is the f means...?
The best programming trainer I had ever found
Mam please upload daily one video of python playlist so that course will cover soon 🤗
Yes mam
th-cam.com/play/PLiGZr12WNR__GYRNM4JrDiLUDH53WegXO.html
@@gauravwankhade170 th-cam.com/play/PLiGZr12WNR__GYRNM4JrDiLUDH53WegXO.html
Yes mam please🙏
Yes mam
Hello Jenny mam, Thanks for ur videos. Really valuable content easy to understand and practice as well.
Mam...with this speed , we will learn python in about 1year. Please upload the video regularly. We got other stuffs also to cover
me watching after 1 year 😂
@@Shariquehussain186 🤣
Wow nice ,and very good communication another wyes clear voice madam
Why we have to take int for weight
Wt=input("Enter weight in kg : ")
Height=input("Enter height in m: ")
BMI=float(wt)/(height**2)
print(BMI)
You didn't convert height into float
""सफलता को पहली बार में सामना करने से मत 😊😊 डरो क्योंकि सफल गणित भी जीरो से शुरू हुआ था।""
👍🏻👍🏻👍🏻Thank you mam 🙏🙏🙏 Excellent session👌 ❤❤❤🙏
I really appreciate you mam because from past 1-2 months i was totally confused in operator precedence so after watching this lecture I have understand the topic of operator precedence and using the chatgpt i have created some random question for making my concept more stronger after solving 15-20 question now i can say i can easily solve any of operator precedence question with any nested or deeper precedence topic
Can u tell me where is the assignments
Mam I'm waiting for ur videos..But now finally u have uploaded mam thank u a lot mam....I hope u are fine...❤️.Take care
user_input1 = int(input("enter your weight in kilograms: "))
user_input2 =float(input("enter your height in metres: "))
BMI = user_input1/(user_input2)**2
print(BMI)
if BMI < 18:
print("your are in under weight category,kindly improve your weight through taking healthy foods.")
elif BMI > 18 and BMI 25 and BMI < 30 :
print("oh!!!,your are in over weight condition,kindly follow diet and do the workout daily.")
elif BMI > 30 :
print("hey user,your are in obesity condition right now,visit doctor and take the suitable treatment to reduce weight in heathy manner!!!")
#calculating BMI
weight = float(input("Weight in kg: "))
height = float(input("Height in meters: "))
BMI = weight/(height ** 2)
print("BMI = ",BMI)
Sister while adding more operators first of all we will use BODMAS rule for solution am i right?
weight=input("Enter weight in kgs : ")
height=input("Enter height in meters : ")
BMI=float(weight)/(float(height)**2)
print("BMI : "+str(BMI))
weight=int(input("enter your age in kg= "))
height=float(input("enter your height in m= "))
bmi=float(weight/(height**2))
print("BMI= ",bmi)
weight=input("weight in kg:")
height=input("height in metres:")
w=float(weight)
h=float(height)
BMI=(w//h**2)
print(BMI)
#BMI program
weight=float(input("Enter your weight : "))
height=float(input("Enter your height : "))
bmi=weight/(height**2)
print("Your BMI is",bmi)
# this program is bmi calculator
# bmi=weight/(height pow 2)
weight=int(input("enter your weight"))
height=float(input("enter your height"))
bmi=weight/(height**2)
print("value for bmi =" + str(bmi))
Weight=int(input("enter your weight in kg"))
Height=float(input("enter your height in meters"))
bmi=weight/(height**2)
Print(bmi)
Mam please create videos on , computer graphics in 2nd year poly 🙏🙏🙏🙏🙏🙏🙏🙏🙏
number=input("what is my bmi?")
weight_kg=number[0]
height_mtr=number[1]
print(weight_kg/int(height_mtr)**(height_mtr))
#formula to calculate body mass index
#BMI = wieght / (hight * hieght)
w = float(input("enter wieght in kg: "))
h = float(input("enter your height in meter"))
BMI = w / h ** 2
print(f"Your Body Mass Index is: {BMI}")
#calculating the Body mass index of an object
weight_of_the_body=(input("enter the weight ofthe body")) #as in kg
Height_of_the_body=(input("enter height of the body")) #as in m**2
calculating_BMI=int(weight_of_the_body)/(float(Height_of_the_body)**2)
print(calculating_BMI)
weight=int(input("enter your weight in kg="))
height=float(input("enter your height in meters="))
print(weight/(height*2))
wighet=input("Enter your weghit:")
hight=input("enter your hight:")
Wighet=int(wighet)
Hight=float(hight)
bmi=Wighet/(Hight*Hight)
print(bmi)
'''
arithmetic operators are
() highest priority
*,/,//,% medimum priority
+,- least priority
and will always be solved from left to right...
'''
a = 12
b = 110
addition = (a + b)
substraction = (a - b)
multiplication = (a * b)
division = (a / b)
modulous = (a % b)
floor = (a // b)
power = (a ** b)
print(addition)
print(substraction)
print(multiplication)
print(division)
print(modulous)
print(floor)
print(power)
# BMI Calculator
# Weight / height squared
weight = int(input('Enter weight in kg: '))
height = float(input('Enter height in meters: '))
bmi = weight / height ** 2
print("Your BMI is: " + str(bmi))
That Equation changing For 11.0 output is
5+2**3*1-10/5 =====> 11.0
Simple....
weight=int(input())
height=float(input())
bmi=weight/height**2
print(float(bmi)
i/o
input= weight
input =height**2
o/p
weight =55
height**2=1.77
and the BMI = 31.0
Cpp ka lecture bhi uploaded kariye
Mam please upload videos regularly 🙏
for 11.0 print(5+2*(3-1)+10/ 5)
Correct
weight=float(input("enter ur weight"))
height=float(input("enter ur heihgt"))
formula=weight/height**2
print("BMI=",formula)
weight = int(input("enter your weight in kg :"))
height = int(input("enter your height in m :"))
sq_height = height**2
BMI = weight/sq_height
print(BMI)
weight=input("pls enter your weight in kgs :")
height=input("pls enter your height in meters :")
BMI=int(weight)/(float(height)**2)
print(BMI)
#arithmetic operators
num1=int(input("Enter number 1 : "))
num2=int(input("Enter number 2 : "))
print("Addition of",num1,"and",num2,"is",num1+num2)
print("Subtraction of",num1,"and",num2,"is",num1-num2)
print("Multiplication of",num1,"and",num2,"is",num1*num2)
print("Division of",num1,"and",num2,"is",num1/num2)
print("Floor Division of",num1,"and",num2,"is",num1//num2)
print("Modulus of",num1,"and",num2,"is",num1%num2)
print("Exponential of",num1,"and",num2,"is",num1**num2)
hight =input("enter your hight:")
weight=input("enter your weight ")
bm= int(weight)/(float(hight)**2)
print(bm)
Mam please upload notes of before and present video thanks for your videos
weight=float(input("Enter your weight in KG : "))
height=float(input("Enter your height in Meter : "))
BMI=weight/height**2
print(f"BMI of Weight {weight} and Height {height} is",BMI)
weight=int(input("enter the value of weight:"))
height=float(input("enter the value of height in meters:"))
BMI= weight/(height**2)
print("the BMI alue is:",BMI)
#body mass index
height=float(input("enter Weight in (mtr):"))
weight=float(input("enter Weight in (kg):"))
BMS=weight/(height*height)
print(f"bms:{BMS}")
weight=int(input())
height=float(input())
BMI=weight/(height*height)
print(BMI)
10:00 we can simply subtract 1 at the end of the given expression without using parenthesis and it will give 12.0 - 1=11.0
we can use parenthesis for the 3-1 part as well....ma'am said by using parenthesis we shd get
my BIM program
print("Welcom in the BMI program")
height = input("Enter your height: ")
weight = input("Enter your weight: ")
BIM = float(weight)/(float(height)**2)
print("Your BIM is:", BIM)
if BIM 18.5 and BIM 25 and BIM = 30:
print("you're in the obese range
")
a=input ("Enter your weight in kg: ")
b=input ("Enter your height in meter: ")
w=int(a)
h=float(b)
bmi=w/(h**2)
print ("BMI= "+"bmi")
Mam BMI not calculate correctly 🤕... It gives Type error.
I put same formula. written as…
weight=input ("weight in kg: ")
height=input ("height in meter: ")
BMI= (weight)/(height*height)
print (BMI)
broo put (height **2)
number = input("enter a digits number: ")
n1 = number[0]
n2 = number[1]
print(int(n1) + int(n2))
number=input("enter the two digit number you want to print")
sum=int(number[0])+int(number[1])
print("the sum is :" +str(sum))
Is the print function return values as a tuple
w=int(input("Your weight in Kg: "))
h=float(input("your height in cms: "))
Bmi = w/(h**2)
print(Bmi)
weight = int(input("Enter the weight : "))
height = float(input("Enter the height in cm: "))
bmi = weight/(height**2)
print("The BMI is : ",bmi)
kunal=input("enter your weight")
kunaldas=input("enter your height")
bmi=int(kunal)/float(kunaldas)**2
print(bmi)
a = int(input("enter the weight"))
b = float(input("enter the height"))
bmi = a/b**b
print(bmi)
5+2*(3-1)+10/5=11 .0 mam. Thanks for your teaching mam
a= Input ("Enter your Weight")
b= Input ("Enter your Height")
Weight = Int(a)
Height = Int(b)
BMI = Print(Weight/(Height**Height))
#printing the BMI
weight=int(input("enter a in weight in kg:"))
height=float(input("enter a in height in meters:"))
bmi=int(weight)/(float)(height**2)
print('BMI:',bmi)
calculating BMI value
weight = input("enter your weight in kg: ")
height = input("enter your height in cm")
weight_in_int = int(weight)
height_in_int = float(height)
BMI = weight_in_int / ((height_in_int/100) ** 2)
print("Your BMI: " + str("{:.2f}".format(BMI)))
a=input("enter a value")
Sum=int(a[0])+int(a[1])
print(sum)
num=input("give a any 3 numbers:")
num1=num[0]
num2=num[1]
num3=num[2]
print(float(num1)+float(num2)+float(num3))
#o/p=answer.0
Weight_in_kg=int(input("enter your weight in kgs?
"))
height_in_meter=float(input("enter your height in meters?
"))
BMI=Weight_in_kg/height_in_meter**2
print("your BMI is="+str(BMI))
Mam please 1 video daly uplode kriye jisse jaldi katam ho jaye, Mujhe bhut jada jrurat h please🙏🙏
number=input (''Enter a two digit number: '')
result=int (number [0])+int (number [1])
print(result)
I tried more ... AND WORKS OK..
a = input("enter_first_value=")
b = input("enter_second_value=")
print("---------------------------------------------")
c=(int(a)+int(b))
d=str(c)
print("addition value is ="+d)
e=(int(a)*int(b))
f=str(e)
print("multiplication value is ="+f)
g=(int(a)-int(b))
h=str(g)
print("minus value is ="+h)
divide=(float(a)/float(b))
divide1=float(divide)
divide2=str(divide1)
print("Divided value found is ="+divide2)
power=(int(a)**int(b))
power1=str(power)
print ("raised to the value found is ="+power1)
print("===========================================")
weight=int(input("enter weight= "))
height=int(input("enter height= "))
BMI=weight/height**2
print(BMI)
a=int(input("enter a weight of a person in Kgs: "))
b=int(input("enter a height of a person in cm :"))
#calculating a Body mass index (BMI)
BMI = a/(b^2)
print(BMI)
name=input("Person name: ")
gender=input("Gender: ")
hight=float(input("Hight in centimeter: "))
wight=float(input("Wight in kg: "))
hight=hight/100
BMI=(wight/(hight**2))
print("Your BMI is "+ str(BMI))
print("Thank you")
Thank You "janny" to explain into a deep.
hight=input('Enter your hight ')
weight=input("Enter your weight ")
print("BMI IS =")
print(int(weight)/(int(hight)**2))
weight = input("Enter your weight in kg: ")
height = input("Enter your height in meters: ")
weight = int(weight)
height = float(height)
print(weight/height**height)
P_W =float(input("what is your weight in kgs?"))
P_H = float(input("what is your height in meters?"))
BMI= P_W/(P_H **2)
print("your body mass index is : " + str(BMI))
Could you explain about socket programming using c language madam
i also want to learn socket programming in C and C++
number=input("enter the value")
first=number[0]
second=number[1]
sum = int(first) + int(second)
print(sum)
weight=input("Enter the your weight(kg): ")
height=input("Enter the youyr height(m): ")
BMI=int(weight)/(float(height)**2)
print("Your body mass index:"+str(BMI))
this also possible
Mam, Please make videos on HTML & JAVASCRIPT.
Yes, mam please.
Ma'am when will next lecture come...can u tell about schedule of python videos...I mean timing and days ....
print("Welcome to the BMI Calculator:")
weight= float(input("What is your weight in kgs
"))
height= float(input("What is your height in meteres
"))
result= int(weight/height**2)
print("Your Body Mass Index is " + str(result))
#the formula for bmi is weight divided by the square of height
x = int(input("enter your weight in kg: "))
y = float(input("enter your height in meter: "))
z = x /y ** 2
print("your bmi is:" + str(z))
Mam I had a doubt that if we give input as print(5//2)we get answers as 2 i think You will explain me this right in the comment section please....
print("Hi,Iam BMI calculator")
name=input("please enter your name=")
ht=input("please enter your height=")
wt=input("please enter your weight=")
BMI=int(wt)/int(ht)**2
print("Hi"+name+"
Your BMI is="+str(BMI))
var1 = input("Enter your height in meters: ")
var2 = input("Enter your weight in kilograms: ")
height = float(var1)
weight = float(var2)
BMI = weight/(height ** 2)
print(BMI)
I have just came up with simple code:
num=input("enter number:")
print(int(num[0]) +int(num[1]))
tq mam
love your way to educate the people
weight=input("enter your weight")
height=input("enter your height")
kg=int(weight)
m=float(height)
BMI=(kg/m**2)
print(BMI)
Print(5+2*(3-1)+10/5)
print(5+2*(3-1)+10/5 )
11.0
#BMI =Body mass Index
weight= int(input("Enter the weight in kg="))
Height=float(input("Enter the Height in metre="))
BMI=weight/(Height**2)
print(BMI)
Please mam continue a python lecture
Ma'am if I want to enter the values by the user then What changes I have to do that...
Like...
num=input("Enter the numbers :")
num_1=num[0]
num_2=num[1]
print(int(num_1)/int(num_2))
Thanku mam god bless you for the hard working 🥺🥺🥺🙏🏻
no = input("enter two digit no = ")
Print(int(no[0]) + int(no[1]))
Thanks ma’m your method of teaching is really wonderful for me as I am non technical person and I have a hope to learn python language by this way
But what about exercises to be given for testing our status chaterwise or I should be given exercises from where
Hope you will realise my problem
Thank you but I didn't get ur question 🤔
Mam can u upload more more videos on python please mam ur videos are great
Finally....python series back
Mam you looks soo cute mam
❤❤❤❤❤