jabe obossoi, mx = (n1 if (n1 > n2 and n1 > n3) else (n2 if (n2 > n1 and n2 > n3) else n3)) check this website for more info www.geeksforgeeks.org/program-to-find-the-largest-number-using-ternary-operator/
maximum number from 2 numbers ternary code - print(num1 if num1>num2 else num2) maximum number from 3 numbers ternary code - print("maximum = ", num1 if num1 > num2 and num3 else num2 if num2 > num3 else num3) bhaiya it is right or wrong? maximum number from 4 numbers ternary code - print(num1 if num1 > num2 and num3 and num4 else num2 if num2 > num3 and num4 else num3 if num3 > num4 else num4) right or wrong?
Thanks sir 3 years por ese akta valo playlist paisi
very helpful tutorial
1:23 sec a somossa....slowly ear eaktu describe korle valo hoito.....bt good video___
thanks a lot sir
JazakAllah
Very Good Video
thanks
thank you sir
mash allah
Good
❣️❣️
Ai,machine learning er video cai sir
num1 = 20
num2 = 20
print(num1 if num1>num2 else num2)
it also shows 20. Why?
@Fardil Shifat
Karon akhane bola ache jodi num1(20) boro hoi num2(20) tahole print korbe num1(20)
Else
Print korbe (num2)
Ar eikahane 20==20 tai 1 no. Sorto{if) cancel hoye
Else a hoiche(20)
thanks
sir ternary operator diye ki 3 ti number er result kora jabe na??
jabe obossoi, mx = (n1 if (n1 > n2 and n1 > n3) else
(n2 if (n2 > n1 and n2 > n3) else n3)) check this website for more info www.geeksforgeeks.org/program-to-find-the-largest-number-using-ternary-operator/
unsupported operand type(s) for %: 'NoneType' and 'int'
Sir আমাকে এই প্রবলেম টা বারবার code করতে গিয়ে দেখাচ্ছে। আমি এর জন্য কি করব?
maximum number from 2 numbers ternary code -
print(num1 if num1>num2 else num2)
maximum number from 3 numbers ternary code -
print("maximum = ", num1 if num1 > num2 and num3 else num2 if num2 > num3 else num3) bhaiya it is right or wrong?
maximum number from 4 numbers ternary code -
print(num1 if num1 > num2 and num3 and num4 else num2 if num2 > num3 and num4 else num3 if num3 > num4 else num4) right or wrong?
num1=10
num2=9
""""
if num1>num2:
print(num1)
else:
print(num2)
"""
max = num1 if num1>num2 else num2
print("MAximum = ",max)
Nice