P_14 Operators in Python | Arithmetic Operators | Python Tutorials for Beginners
HTML-код
- Опубликовано: 4 окт 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😊
The best programming trainer I had ever found
Wow nice ,and very good communication another wyes clear voice madam
Hello Jenny mam, Thanks for ur videos. Really valuable content easy to understand and practice as well.
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...?
Mam please upload daily one video of python playlist so that course will cover soon 🤗
Yes mam
ruclips.net/p/PLiGZr12WNR__GYRNM4JrDiLUDH53WegXO
@@gauravwankhade170 ruclips.net/p/PLiGZr12WNR__GYRNM4JrDiLUDH53WegXO
Yes mam please🙏
Yes mam
Sister while adding more operators first of all we will use BODMAS rule for solution am i right?
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 🤣
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
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
#calculating BMI
weight = float(input("Weight in kg: "))
height = float(input("Height in meters: "))
BMI = weight/(height ** 2)
print("BMI = ",BMI)
weight=input("Enter weight in kgs : ")
height=input("Enter height in meters : ")
BMI=float(weight)/(float(height)**2)
print("BMI : "+str(BMI))
weight=float(input("enter ur weight"))
height=float(input("enter ur heihgt"))
formula=weight/height**2
print("BMI=",formula)
""सफलता को पहली बार में सामना करने से मत 😊😊 डरो क्योंकि सफल गणित भी जीरो से शुरू हुआ था।""
👍🏻👍🏻👍🏻Thank you mam 🙏🙏🙏 Excellent session👌 ❤❤❤🙏
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
a = int(input("enter the weight"))
b = float(input("enter the height"))
bmi = a/b**b
print(bmi)
i/o
input= weight
input =height**2
o/p
weight =55
height**2=1.77
and the BMI = 31.0
Mam please upload videos regularly 🙏
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
#BMI program
weight=float(input("Enter your weight : "))
height=float(input("Enter your height : "))
bmi=weight/(height**2)
print("Your BMI is",bmi)
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
")
hight =input("enter your hight:")
weight=input("enter your weight ")
bm= int(weight)/(float(hight)**2)
print(bm)
weight=int(input("enter your age in kg= "))
height=float(input("enter your height in m= "))
bmi=float(weight/(height**2))
print("BMI= ",bmi)
for 11.0 print(5+2*(3-1)+10/ 5)
Correct
number = input("enter a digits number: ")
n1 = number[0]
n2 = number[1]
print(int(n1) + int(n2))
Mam please create videos on , computer graphics in 2nd year poly 🙏🙏🙏🙏🙏🙏🙏🙏🙏
love your way to educate the people
# 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 the value of weight:"))
height=float(input("enter the value of height in meters:"))
BMI= weight/(height**2)
print("the BMI alue is:",BMI)
a=input("enter a value")
Sum=int(a[0])+int(a[1])
print(sum)
weight=int(input("enter your weight in kg="))
height=float(input("enter your height in meters="))
print(weight/(height*2))
Cpp ka lecture bhi uploaded kariye
That Equation changing For 11.0 output is
5+2**3*1-10/5 =====> 11.0
Simple....
number=input("what is my bmi?")
weight_kg=number[0]
height_mtr=number[1]
print(weight_kg/int(height_mtr)**(height_mtr))
weight=input("weight in kg:")
height=input("height in metres:")
w=float(weight)
h=float(height)
BMI=(w//h**2)
print(BMI)
#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)
kunal=input("enter your weight")
kunaldas=input("enter your height")
bmi=int(kunal)/float(kunaldas)**2
print(bmi)
Thank You "janny" to explain into a deep.
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!!!")
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
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))
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")
5+2*(3-1)+10/5=11 .0 mam. Thanks for your teaching mam
Weight=int(input("enter your weight in kg"))
Height=float(input("enter your height in meters"))
bmi=weight/(height**2)
Print(bmi)
Mam please upload notes of before and present video thanks for your videos
w=int(input("Your weight in Kg: "))
h=float(input("your height in cms: "))
Bmi = w/(h**2)
print(Bmi)
number=input (''Enter a two digit number: '')
result=int (number [0])+int (number [1])
print(result)
#calculate BMI
weight= float(input("Please,enter your body weight in kg: "))
height= float(input("Please,enter your height in meters : "))
bmi= weight / (height**2)
print("Your body mass index is :",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)))
height=float(input("Enter your height: "))
weight=int(input("Enter your weight: "))
print("BMI","=",weight/height**2)
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
#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)
Could you explain about socket programming using c language madam
i also want to learn socket programming in C and C++
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)
Height=float(input("Enter Your Height"))
Weight=float(input("Enter Your Weight"))
print("Your BMI based on input values is " + str(Weight/(Height ** 2)))
weight=int(input())
height=float(input())
bmi=weight/height**2
print(float(bmi)
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
#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)
wighet=input("Enter your weghit:")
hight=input("enter your hight:")
Wighet=int(wighet)
Hight=float(hight)
bmi=Wighet/(Hight*Hight)
print(bmi)
# 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))
Ma'am when will next lecture come...can u tell about schedule of python videos...I mean timing and days ....
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))
number=input("enter the value")
first=number[0]
second=number[1]
sum = int(first) + int(second)
print(sum)
Finally....python series back
Thank You So Much
I have just came up with simple code:
num=input("enter number:")
print(int(num[0]) +int(num[1]))
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)
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)
#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))
weight=int(input("enter weight= "))
height=int(input("enter height= "))
BMI=weight/height**2
print(BMI)
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 🤔
weight=input("enter your weight")
height=input("enter your height")
kg=int(weight)
m=float(height)
BMI=(kg/m**2)
print(BMI)
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)
'''
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)
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:")
print(BMI)
Mam, Please make videos on HTML & JAVASCRIPT.
Yes, mam please.
weight=input("pls enter your weight in kgs :")
height=input("pls enter your height in meters :")
BMI=int(weight)/(float(height)**2)
print(BMI)
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....
Good Job, Great👍
weight=int(input())
height=float(input())
BMI=weight/(height*height)
print(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}")
no = input("enter two digit no = ")
Print(int(no[0]) + int(no[1]))
Thanku mam god bless you for the hard working 🥺🥺🥺🙏🏻
Mam can u upload more more videos on python please mam ur videos are great
#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)
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)
Please mam continue a python lecture
# Calculate BMI:-
weight= eval(input('weight in kg= '))
height = eval(input('height in meters= '))
BMI= round(weight/(height**2), 2)
print('BMI=' , BMI)
Today's assignment
weight=int(input("enter a number"))
height=float(input("enter a number"))
c=weight/(height**2)
print ("c",c)
#BMI
weight=int(input("Enterv your weight (in Kg)"))
height=float(input("Enter your height(in Mtr ):"))
BMI=weight/(height**2)
print("Your Bmi is:",BMI)
Mam please 1 video daly uplode kriye jisse jaldi katam ho jaye, Mujhe bhut jada jrurat h please🙏🙏
a= Input ("Enter your Weight")
b= Input ("Enter your Height")
Weight = Int(a)
Height = Int(b)
BMI = Print(Weight/(Height**Height))
tq mam
Mam you are really amazing
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))