Python Bangla Tutorials 16 : Inner If Statement

preview_player
Показать описание
Learning outcomes:
1) inner if statement syntax
3) largest number among 3 numbers program
Full Python Course is here :
Рекомендации по теме
Комментарии
Автор

I am non CSE baground but by learning from your video a lot & day by day my interests growing for becoming a programmer. Best of luck. May ALLAH bless you.

hedayeterilm
Автор

n1=float(input("enter the number :"))
n2=float(input("enter the number :"))
n3=float(input("enter the number :"))
if n1>n2:
if n1>n3:
print("The largest number :", n1)
elif n2>n3:
print("The largest number :", n2)
else:
print("The largest number :", n3)
also another solution.

mdalbaratalimishu_
Автор

Thank you so much Anisul islam vaiya.. you've been a great help!

Farduswahid
Автор

A =160
B =150
C = 160
D =121


if A>B:

if A>C :

if A>D :
print(A)

else:
print(D)
else:
print(C)
else:
print(B)





A =161
B =187
C = 162


if A>B:

if A>C:

print(A)

else:
print(C)

else:
print(B)

ভাইয়া এইভাবে করলে কি ভূল হবে?

shouravshingha
Автор

After 4 years watching videos from your playlist and learning.
It's really easy to watch your videos.
I study in class 9. Hope to give some suggestions so that I can move forward😄

pozptsf
Автор

assalamualaikum bhaiya ami ki python dye jekono android app nijer moto kore modify korte parbo ? plz reply

bashirmondal
Автор

class 8'9 united public school and college .total 89 student see you every day

pgwftzi
Автор

#user Input part


Employee_ID = int(input("Your ID No : "))
Name = input("Your Name : ")
Salary = int(input("Your Gross Salary : "))
Basic = int(Salary*.60)
loan_type = input("Loan type : ")
required_loan = int(input("Your Required Loan Amount: "))
#purpose_of_loan = input("Enter The Purpose of your loan: ")

#Condition part
if required_loan < Salary *.60 and loan_type == "Education" or required_loan < Salary *.60 and loan_type == "education" :
print("Dear Mr." + Name + ", ")
print("You can take ", required_loan , "BDT as a education loan")
print("Your Loan amount is in progress, we will notify you when accepted.")
print("Thank you")

elif required_loan > Salary *.60 and loan_type == "Education" or required_loan > Salary *.60 and loan_type == "education" :
print("Dear Mr." + Name + ", ")
print("You can not take loan more than", Basic, "BDT")

#Medical loan as per policy
elif required_loan <= Salary and loan_type == "Medical" or required_loan <= Salary and loan_type == "medical" or required_loan >= Salary and loan_type == "Medical" or required_loan <= Salary and loan_type =="medical" :
loanfor=input("For you ? Type Y for Yes / N for No : ")


if loanfor == "Y" or loanfor == "y":
print("You can avail to get full amount ", required_loan, "BDT for your own ")
print("Please Submit all documents for approval your loan")
elif required_loan < Basic and loanfor == "N" or required_loan < Basic and loanfor == "n" :
print("Your can take loan for family member : ", required_loan, "BDT")
elif required_loan >= Basic and loanfor =="N" or required_loan >= Basic and loanfor == "n" :
print("You can take loan for your family member maximum : ", Basic, "BDT")


#Personal loan as per Policy
elif required_loan < Salary and loan_type == "Personal" or required_loan < Salary and loan_type == "personal":

print("Congratulations ! You are avail to take loan")
print("You are avail to take loan : " + str(required_loan) + " BDT, as per company policy")

print("Dear Mr." + Name +", ")
print("Your Loan amount is in progress, we will notify you when accepted.")
print("Thank you")



elif required_loan < Salary and loan_type != "Personal" or required_loan < Salary and loan_type != "personal" :
print("Your required loan Type is not correct")
print("Please re-insert correct loan Type")

elif required_loan > Salary and loan_type == "Personal" or required_loan > Salary and loan_type == "personal" :
print("Sorry, your can not take loan more than your gross salary")
print("Please re-insert loan amount less than your gross salary")

elif required_loan > Salary and loan_type != "Personal" or required_loan > Salary and loan_type != "personal" :
print("Please re-insert correct loan type")




@Anisul Vai apnar video dekhe eta likhlam

hedayeterilm
Автор

Thanks for your video and you should design your website more !!

sadmansakib
Автор

num1=10
num2=9
num3=8
if num1>num2:
if num1>num3:
print(num1)
else:
print(num3)
#if num2>num1:
else:

if num2>num3:
print(num2)
else:
print(num3)

ishanarif
Автор

vai eta to inner if chara elif diyeo kora jay

KMAsif-tbwp
Автор

can i use eilf instead of the 2nd if(not the inner if)??

hashawon
Автор

#what mistake I did please tell me
num1 = 10
num2 = 12
num3 = 8
if num1 > num2:
if num1 > num3:
print(num1)
else:
print(num3)
if num2 > num1:
if num2 > num3:
print(num2)
else:
print(num3)

makpasa
Автор

Ekhane ki elif use kora jabenah second condition a

nayeem
Автор

স্যার 2য় অংশে একবারে,
else:
Print(num2)
লিখে দিলে হতো না?
মানে, if num2>num1:
এই অংশটা তো শুধু শুধু করার দরকার নেই।

mdfardinislam
Автор

vai ami jodi 3 ta variable num1, num2, num3 er man user er kach theke input korte cai, then user er input kora man ta- if, elif, else dara check hoye output ber hobe, sekhetre kivabe seta korbo.plz janabel.Thank you.

mahiuddinabdullah
Автор

inner statement means, jdi if statement dui tai true hoy tahole print korbe "hi" r jdi ekta true onno ta false hoy tahole print korbe "hello"?

mdemamhossenmollik
Автор

It works but when i put "input" function, it doesn't work..., please help me

iqbalhossen