Комментарии:
It's great to learn from you by far the easy catch of codes 🙇
ОтветитьWhere is that moth thing hes using
Ответитьn1 = float(input("gib der ersten NUmmer ein: "))
n2 = float(input("gib der zweiten NUmmer ein: "))
n3 = float(input("gib der dritten NUmmer ein: "))
if n1 > n2 and n1 > n3:
print('der ersten Nummer ist am großen.')
elif n2 > n3 and n1:
print('Zweiten NUmmer ist am großen.')
elif n1 == n2 and n2 == n3:
print('Alle Nümmern sind gleisch.')
else:
print('Dritten Nummer ist am großen.')
print('der ersten Nummer ist am großen.')
elif n2 > n3 and n1:
print('Zweiten NUmmer ist am großen.')
elif n1 == n2 and n2 == n3:
print('Alle Nümmern sind gleisch.')
else:
print('Dritten Nummer ist am großen.')
It works for me :)
x=int(input("enter a number"))
if x>0:
print("positive")
if x<0:
print("negative")
the code is....
x=int(input("enter the 1st number"))
y=int(input("enter the 2nd number"))
z=int(input("ener the 3rd number"))
if x>y and x>z:
print("1st number is greater")
elif y>x and y>z:
print("2nd number is greater")
else:
print("3rd number is greater")
Answer for 2nd question
x=input()
y=input()
z=input()
if x>y:
print(x)
if y>z:
print(y)
if z>x:
print(z)
nice
ОтветитьThank you Sir,
Love from Rawalpindi
To compare the greatest of the 3 numbers.
x = int(input("Please enter first value: "))
y = int(input("Please enter second value: "))
z = int(input("Please enter third value: "))
if x==y and x==z:
print('All the values are same')
elif x>y and x>z:
print(x)
elif y>x and y>z:
print(y)
else:
print(z)
quiz answer:
x = int(input('enter 1st no'))
y = int(input('enter 2nd no'))
z = int(input('enter 3rd no'))
lis = [x,y,z]
print(max(lis))
Anna teluga ahh..??
Ответитьpowerful!
Ответитьfor assignment 1
x = int(input("enter no. "))
y = -0
if x == 0:
print("neutral int")
elif x < y:
print("negative int")
else:
print("positive int")
1)Finding positive number.
X=-5
if X>0:
print("The given number is positive")
else:
print("The given number is negetive"print(" Enter 3 numbers of your choice\n")
---------------------------------------------------------------------------------------------------------------------------------------------
2)Finding largest number.
x=int(input(" enter first number: "))
y=int(input(" enter second number: "))
z=int(input(" enter third number: "))
if x>y:
if x>z:
print("greater number is: ",x)
elif y>x:
if y>z:
print("greater number is: ",y)
else:
print(" Greater number is: ",z)
x = int(input('first value'))
y = int(input('second value'))
z = int(input('third value'))
if x > y and x > z:
print(x)
elif y > x and y > z:
print(y)
else:
print(z)
The best tutor found on the internet for programming skills....
Ответитьthanks sir
ОтветитьYou are a very good teacher. Thank you Sir.
Ответитьx=int(input('enter first num'))
y=int(input('enter second num'))
z=int(input('enter third num'))
if x>y and y>z:
print('bigger number',x)
elif y>x and y>z:
print('biggr num',y)
elif z>y and z>x:
print('big num',z)
i=int(input('enter a number'))
if i==0:
print("zero")
elif i<0:
print('negetive number')
else:
print('positive number')
This was very well explained. Thank you.
ОтветитьHi .. I m new learner .. I don’t have any experience in coding or programming.. but I like to learn python .. my educational background is masters in physics .. I did some operations while doing projects.. but I wanted to chng my profession … I would like to learn data analysts … can anyone plz guid me for better learning excel, SQL
ОтветитьPlease suggest python book for beginners
ОтветитьThank you I have a good Understand About this lesson After your Great Explanation .
ОтветитьLearning in 2023 it's just awesome u are making me to interest to learn
ОтветитьHi sir, I'm salman
I'm watching all videos of yours,
But this one i can't understand 😢
x = int(input("Write any number"))
y = int(input("Write 2nd number"))
z = int(input("Write 3rd number"))
if x>y:
if x>z:
print("The greatest number is",x)
else:
print("The greatest number is",z)
else:
if y>z:
print("The greatest number is",y)
else:
print("The greatest number is",z)
Doing something by yourself feels soo goood...
1)x = int(input('Enter a number:'))
if x>0:
print('the number is positive')
elif x<0:
print('the number is negative')
print('Bye ! Have a nice day')
2)x = int(input('Enter 1st number:'))
y = int(input('Enter 2nd number:'))
z = int(input('Enter 3rd number:'))
if(x>y and x>z):
print('1st number is greatest')
elif(x>y and x<z):
print('3rd number is greatest')
elif(x<y and y>z):
print('2nd number is greatest')
elif(x<y and y<z):
print('3rd number is greatest')
elif(x==y and x>z):
print('1st & 2nd numbers are equal and greatest')
elif(x==y and x<z):
print('1st & 2nd numbers are equal and 3rd number is greatest')
elif(x==z and x>y):
print('1st & 3rd numbers are equal and greatest')
elif(x==z and x<y):
print('1st & 3rd numbers are equal and 2nd number is greatest')
elif(y==z and x>z):
print('2nd & 3rd numbers are equal and 1st number is greatest')
elif(z==y and x<z):
print('1st & 2nd numbers are equal and greatest')
elif(x==y==z):
print('All three numbers are equal')
print('Bye !')
solution for E1
x = -1
if x<0:
print("Given number is Negative")
elif x>=0:
print("Given number is Positive")
solution for E2
num1 = int(input("Enter First Number1: "))
num2 = int(input("Enter First Number2: "))
num3 = int(input("Enter First Number3: "))
if num1 > num2 and num1 > num3:
print("Number1 is Greatest")
elif num2 > num1 and num2 > num3:
print("Number2 is Greatest")
else:
print("Number3 is Greatest")
answer for q2 at the end of the video
x = float(input('enter a number 1'))
y = float(input('enter a number 1'))
z = float(input('enter a number 1'))
if (x > y) & (x > z):
print('the greatest is {}'.format(x))
elif (y > x) & (y > z):
print('the greatest is {}'.format(y))
elif (z > x) & (z > y):
print('the greatest is {}'.format(z))
elif (x == y == z)|(x == y)|(x ==z)|(y == z):
print('do not enter same values')
The solution for assignment 1 is
x=int(input("enter the number :"))
if x<0:
print("negative number")
elif x==0:
print("constant")
else:
print("positive")
output:-
enter the number :5
positive
The solution for assignment 2 is
x=int(input("enter the 1st number :"))
y=int(input("enter the 2nd number :"))
z=int(input("enter the 3rd number :"))
if (x>y) and (x>z):
print("x is a greater number")
elif (y>x) and (y>z):
print("y is a greater number")
else:
print("z is a greater number")
output:-
enter the 1st number :7
enter the 2nd number :8
enter the 3rd number :6
y is a greater number
thanks for the video
ОтветитьYou made it so easy! I could do the quiz questions in just 10 mins!
1. print("Let's check if a number is +ve or -ve.")
print()
x = int(input("Enter a number: "))
if x > 0:
print("You entered a positive number")
else:
print("You entered a negative number")
print("See you later!")
2. print("Let's check the highest of 3 numbers you give.")
print()
first_num = int(input("Enter the first number: "))
second_num = int(input("Enter the second number: "))
third_num = int(input("Enter the third number: "))
maximum = max(first_num, second_num, third_num)
print("Highest number is " + str(maximum))
if number > 0:
print("Positive")
else:
print("Negative")
----------------------------------------------------------------
a = int(input("Enter the first number: "))
b = int(input("Enter the second number: "))
c = int(input("Enter the third number: "))
if a > b and a > c:
print(a, "is the greatest")
elif b > a and b > c:
print(b, "is the greatest")
else:
print(c, "is the greatest")
Hey Navin, I am looking to change my career and I was looking for good mentor who can teach me programming in easy way and here I got your tutorials. Sorry at this moment I can't donate but I promise when I started earning from my my new career then sure I will. Also your tutorials are awesome
Adding to this I a just want to say I am not sure if I am right, when you did ifelse the number was 5 but it directly went to bye but didn't print "it's not great". Can you plz suggest this was right or wrong.
All the best for your new tutorials and God bless you
a great tutorial with an excellent teacher, it was relly helpful^^
ОтветитьAns 1:
x = int(input(" enter any number :"))
if x>=0:
print ("The number is positive") # considering 0 a positive number
else:
print("The number is negative")
Ans 2(a):
x1, x2, x3 = int(input("enter 1st number")), int(input("enter 2nd number")), int(input("enter 3rd number")),
if x1 > x2 and x3: # without using max function
print("The max number is :",x1)
elif x2 > x3 and x1:
print("The max number is :",x2)
if x3 > x2 and x1:
print ("The max number is :",x3)
Ans 2(b):
x1, x2, x3 = int(input("enter 1st number")), int(input("enter 2nd number")), int(input("enter 3rd number"))
print( "The max number is :", max(x1, x2, x3))
since 4 days i was confused between nested if and elif, now fully understood the difference between them .
Thank you so much sir!!🙏
Worst explanation
Ответитьn = int(input("Enter a number"))
if n>0:
print("Number is positive")
elif n<0:
print("Number is negative")
else:
print("Wrong input")
n1 = int(input("Enter 1st Number"))
n2 = int(input("Enter 2nd Number"))
n3 = int(input("Enter 3rd Number"))
if n1>n2 and n1>n3:
print("1st number is greatest")
elif n2>n1 and n2>n3:
print("2nd number is greatest")
if n3 > n1 and n3 > n2:
print("1st number is greatest")
Wow
Ответить1.
a= values
if a>0:
print('positive')
else:
print("negative').
2.
a,b,c=5,8,11
if a>b and a>c:
print('a is highest')
if a<b and c<b:
print('b is highest')
if a<c and b<c:
print('c is highest')
print()
print("Hello World")
n1 = 8
if n1 > 0:
print("Positive Number")
else:
print("Negitive Number")
n2 = int(input("Enter 1st Number: "))
n3 = int(input("Enter 2nd Number: "))
n4 = int(input("Enter 3rd Number: "))
if n2 > n3:
if n2 > n4:
print(n2)
elif n3 > n4:
print(n3)
else:
print(n4)
missing IDLE🙂
Ответитьa = int(input("Enter first number"))
b = int(input("Enter second number"))
c = int(input("Enter third number"))
if a > b and a > c:
print(a)
elif b > a and b > c:
print(b)
elif c > a and c > b:
print(c)