I did it this way only a little change is there i hope you like it: n1 = int(input('Enter first number: ')) n2 = int(input('Enter second number: ')) a = 1 if n1>n2: l = n1 else: l = n2 while True: if n1>0: z = n1*a a+=1 if z%n2 == 0: print(z, ' is the LCM.') break
Another way to solve this problem :) Btw your explanation was pretty good :) THE CODE: def lcm(n1, n2): value = max(n1, n2) n = 1 while True: ans = value * n if ans % n1 == 0 and ans % n2 == 0: print("The lcm of the program is ", ans, ".") break n += 1 n1 = int(input()) n2 = int(input()) lcm(n1, n2)
ma'am please make python tutorials for tcs nqt coding section evryone is covering that topic using c, c++ no one's considering python, though python is the best language, i found this channel best for python ✌🏻💯
This is for the people in a time crunch : def Compute_LCM(n1,n2): if n1>n2: higher = n1 else: higher = n2 value = higher while True: if higher%n1==0 and higher%n2==0: print("LCM of", n1,"and",n2,"is",higher) break else: higher = higher+value n1=int(input("No.1 please:")) n2=int(input("No. 2 please:")) Compute_LCM(n1,n2)
Respected mam, my cognizant exam is scheduled after 15days and and I have also applied for TCS NQT. I want to crack both of the companies. Please guide me mam.. please 😅
When I put else block straight to while loop, it is not providing output. But in your another video, you have given else block straight to while loop. Can u explain mam
Hello, I am new to Python programming. I am 71 years old and trying to learn Python for fun. I have one problem. I am trying to print pattern like "0 ,1, 2 , 3, 4 ,5 6, 7, 8, 9, 0, 1" depending on input from user. For example if user enters number of row=3 and number of column=5. Pattern should print 0 to 5 in first row,6 to 9 and remaining 0 and 1 in second row and remaining numbers 2,3,4,5,6,7 in thrid row. How do i accomplish this? I watched your several tutorials but unable to work it out. Thank you, Harish
Respected mam, you don't know that how much you are helping to the students like me.ThankYou mam.
Pleasure 😊
I did it this way only a little change is there i hope you like it:
n1 = int(input('Enter first number: '))
n2 = int(input('Enter second number: '))
a = 1
if n1>n2:
l = n1
else:
l = n2
while True:
if n1>0:
z = n1*a
a+=1
if z%n2 == 0:
print(z, ' is the LCM.')
break
else:
print(0)
Can you please define the variables
Another way to solve this problem :)
Btw your explanation was pretty good :)
THE CODE:
def lcm(n1, n2):
value = max(n1, n2)
n = 1
while True:
ans = value * n
if ans % n1 == 0 and ans % n2 == 0:
print("The lcm of the program is ", ans, ".")
break
n += 1
n1 = int(input())
n2 = int(input())
lcm(n1, n2)
Thank you :)
@@AmulsAcademy mam i do like your code but i got an error in local variable help me pkz
This is your first video I saw and like, subscribed Because I like the way you teach us
superb
Keep it up Sister😊
👍
Thank you so much mam for making us easily to understand the logic 👏👏
mam please keep uploading videos like this it helped me a lot ♥
Ur teaching style is awesome mam.
Thanks a lot :)
Mam you are superb.Great respect from class 11 Tint Tots public school.
actually i like these lectures..
my kind request you to create an telegram channel so we will get updates sa possible!!
ma'am please make python tutorials for tcs nqt coding section evryone is covering that topic using c, c++ no one's considering python, though python is the best language, i found this channel best for python ✌🏻💯
Will try :)
Thank you :)
This is for the people in a time crunch :
def Compute_LCM(n1,n2):
if n1>n2:
higher = n1
else:
higher = n2
value = higher
while True:
if higher%n1==0 and higher%n2==0:
print("LCM of", n1,"and",n2,"is",higher)
break
else:
higher = higher+value
n1=int(input("No.1 please:"))
n2=int(input("No. 2 please:"))
Compute_LCM(n1,n2)
Doesn't work
amazing explaination, thank you so much!
Glad to see your current video please drop the video on Linkedlist singly or double linked list
Sure :)
this video is very helpful for us thank you so much mam :) and i request you to do a video on how to print pythogoras triplets in range of n numbers
I like the way of teaching....thank you!
expecting more videos from u
Thank you :)
Mam please make a video on the program to find the smallest of 10 numbers entered, a sum of the digits of the smallest number, if it is an integer
if you ever thought this was tough
try this code....
import math
print(math.lcm(x,y))
Clear explanation mam
It is very very helpful for me.
thanks, Amulya!
Pleasure :)
love u mam .. keep going.......on pythonnnnn
Voice kii flat nenu🤭🤭😍
Thank you :)
Excellent explanation.
Thank you so much😇🤗
Respected mam, my cognizant exam is scheduled after 15days and and I have also applied for TCS NQT. I want to crack both of the companies. Please guide me mam.. please 😅
Great explanation 😃
Thank you :)
Perfectly Cooked
Hi Amul! Is it me or did your channel grow A LOT?? :) :)
a = 24
b = 36
ca = max(a, b)
minn = min(a,b)
count = 1
while True:
if (ca * count) % minn == 0:
print(ca * count)
break
count += 1
can you please start series of binary tress , linkedlist, graphs etc and python implementation?
Sure :)
When I put else block straight to while loop, it is not providing output. But in your another video, you have given else block straight to while loop. Can u explain mam
You can use else block with loops but first you need to understand it’s working 😊
Give me the program I will check 😊
That was beautiful!
your voice is super
factors of n2 will always get 0 as modulo when performing : higher%n2 == 0,,,,,,, so its better to exclude this condition.
Thank you so much !!!!
Pleasure 😊
Super mam🥰😍
superbb expalntion mam
Thank you :)
I have created a program which can calculate both lcm and HCF of 3 no.s in less than 30 lines
then share the code
Thank you
My Pleasure :)
THANK YOU.
You're welcome!
First viewer 😀😀😎
nice explanation
Thank you :)
the accent is hard to understand but explaination is great
Hello,
I am new to Python programming. I am 71 years old and trying to learn Python for fun. I have one problem. I am trying to print pattern like "0 ,1, 2 , 3, 4 ,5
6, 7, 8, 9, 0, 1" depending on input from user. For example if user enters number of row=3 and number of column=5. Pattern should print 0 to 5 in first row,6 to 9 and remaining 0 and 1 in second row and remaining numbers 2,3,4,5,6,7 in thrid row. How do i accomplish this? I watched your several tutorials but unable to work it out.
Thank you,
Harish
please upload telugu videos madam
Super..
I did this like this
x = 0
while True:
x += 1
if x % 24 == 0 and x % 36 == 0:
break
print(x)
Could you please draw a flowchart for same
Amazing Explanation 🤗🤗
Thank you :)
Ma'am , please clarify my doubt.. Which version of python you're using? Python 2 or 3???🥺🥺
3.7
Why do you change amul's acadamy into amulya acadamy, ?
When you executed 24 and 36, the lcm is 72 and I got the same,
But when I execute 36 and 24, the lcm is 36
You did a mistake in your code bro...
I am getting correct answer 72 for both cases
Super
Thank you 😊
Hi mam nice explanation but ur code is not working when one of the number is 0
Vara level
Plz teach pandas
Madam pls teach pandas
Any New python program
amulya ??did y like milk products??
There's a thing that can be improved: Please learn more English, because it's a bit hard to listen to what you meant or what you're saying.
Ur teaching style is awesome mam
Thanks a lot :)
Super