shradha you are a star. I tried to learn from so many other TH-cam videos but their way of teaching was so complex, however, you explained the topic of LOOP in detail and in simplified ways resulting in understanding it so well. Thank you so much and God bless.
00:01 Chapter Five covers details about for and while loops in Python 02:30 Introduction to while loops in Python 06:29 Loops in Python help to repeat a set of instructions until a specific condition is met. 08:30 Loops are used to execute a set of statements multiple times 12:42 Using loops in Python to print numbers from 1 to 100 and in reverse order 14:53 Printing multiplication table using loops in Python 18:52 Printing multiplication tables and looping through a list in Python. 21:04 Using loops to iterate through lists and tuples 24:58 Understanding loops in Python 26:53 Explaining the process of searching in Python using loops 30:44 Understanding the break keyword in Python loops 32:38 Using loops in Python to search and print a number 36:28 For loops are used for sequential traversal of elements in a sequence. 38:08 For loop in Python iterates over a sequence of elements. 42:06 Using for loop for iterating through a string 44:11 Using for loops in Python to iterate through elements and track their index. 48:14 Using range function to iterate through sequences. 50:03 Loops in Python allow for iteration with conditions and step sizes. 53:59 Understanding the usage of 'pass' statement in loops. 55:51 Loops in Python are essential for executing repetitive tasks. 59:39 Factorial calculation using For Loop in Python 1:01:46 Understanding while and for loops in Python
Abe nalle yaha pe ye notes banane se accha apni notebook Mai kuch notes likhle ,yaha pe koi timepass karne nahi ata Jo yaha se time click karke aage chala jayega 😂
mam love from village ❤ while True: print("Did you understand the whole lecture on while, for, range, continue, break, and pass?") stu = input("Enter 'yes' or 'no': ").lower() if stu == 'yes': print("Congratulations! You are the father of coding!") break elif stu == 'no': print("Moye Moye! You are a looser. Keep practicing!") break else: print("Invalid input. Please enter 'yes' or 'no'.")
@@nandani._. you must have just copied and pasted and there might have been an indentation error on your part.The code does not have any syntax errors.
For 23:20 mins in question where you have to print the perfect squares of no. 1 - 10 i Found a shorter and easier way to do that the code is :- i = 1 while i
@@jwjkek bro ma software dev hun, 72 hoorein ki quran ma kahen bi nahi ha , ye sirf Molvion ne Banaya Ha , kisi hadees ka galat Menaning nikal kr , Ap ko to pata hi haa , molvi kitna para hotta , 10th fail hota commanly , so wooo too jannat ma hoor ka ilawaa kia hi mang skta , Han Bakki islam apna laws ki base par hard ha kaffii, but need base pe Forran Islam Easiest hojata ha , baki bro ap ko kisi bi religion ka mazk nahi urnana chahce , as maNe apke religion ko bura to nahi kaha , So apko bi mera religion ko buran nahi kahna chahce.
This series is great and has helped me learn Python from scratch. Please after completing this series make some videos for Python libraries like NumPy, Pandas, Matplotlib, Scikit, etc. This will help lots of students who wants to learn more about Python.
Thanks a lot Shraddha Mam🌟.A well suited contents I have got from this lecture. I stated learning python in 2k24 and in the month of April✨️. Have a good life ahead.
Ye bandi ki vajah se mene sare program khud banaye. Love you shraddha. Itani c age me itna kuch. I hats off to your dad. Aman you are hell lucky to have her in your life
1 Hi didi 2 Hi didi 3 Hi didi 4 Hi didi 5 Hi didi 6 Hi didi 7 Hi didi 8 Hi didi 9 Hi didi 10 Hi didi 11 Hi didi 12 Hi didi 13 Hi didi 14 Hi didi 15 Hi didi 16 Hi didi 17 Hi didi 18 Hi didi 19 Hi didi 20 Hi didi 21 Hi didi 22 Hi didi 23 Hi didi 24 Hi didi 25 Hi didi 26 Hi didi 27 Hi didi 28 Hi didi 29 Hi didi 30 Hi didi 31 Hi didi 32 Hi didi 33 Hi didi 34 Hi didi 35 Hi didi 36 Hi didi 37 Hi didi 38 Hi didi 39 Hi didi 40 Hi didi 41 Hi didi 42 Hi didi 43 Hi didi 44 Hi didi 45 Hi didi 46 Hi didi 47 Hi didi 48 Hi didi 49 Hi didi 50 Hi didi 51 Hi didi 52 Hi didi 53 Hi didi 54 Hi didi 55 Hi didi 56 Hi didi 57 Hi didi 58 Hi didi 59 Hi didi 60 Hi didi 61 Hi didi 62 Hi didi 63 Hi didi 64 Hi didi 65 Hi didi 66 Hi didi 67 Hi didi 68 Hi didi 69 Hi didi 70 Hi didi 71 Hi didi 72 Hi didi 73 Hi didi 74 Hi didi 75 Hi didi 76 Hi didi 77 Hi didi 78 Hi didi 79 Hi didi 80 Hi didi 81 Hi didi 82 Hi didi 83 Hi didi 84 Hi didi 85 Hi didi 86 Hi didi 87 Hi didi 88 Hi didi 89 Hi didi 90 Hi didi 91 Hi didi 92 Hi didi 93 Hi didi 94 Hi didi 95 Hi didi 96 Hi didi 97 Hi didi 98 Hi didi 99 Hi didi
Hello all This one the best python basic lecture you will ever get, In the entire video she never asked for subscribe or like. Let’s encourage her to do more courses like this and help crores of students and learner’s. Keep up the good work Shraddha and keep on helping people.
# Let's Advance Practice with shradha didi for your better improvement and also helps in enhance your knowledge
# 1) Print number from 1 to 100 using while loop i = 1 while i = 1: print(i) i -= 1 # 3) Print the multiplication table of a number n. num = int(input("Enter your print table number 1 to : ")) i = 1 while i
Impressive! Your fluency in computer languages and teaching skills are top-notch. Your detailed explanations are truly impressive and I find your teaching style to be the best. Keep up the amazing work and please continue creating such informative videos in the future. You're a rockstar!
Shradha!! You are awesome and splendid way of teaching like a non stop train! ❤❤🎉🎉🎉🎉🥰🥰👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻 No funs, no jokes ONLY the subject.. Still we are never bored and so interesting alll the sessions are!!! 🍫🍫🍫🍧🍧🍨🍨🍨 Gorgeous Beauty and amazing Brain!! Topnotcher..! 😍😍😍😍🎉🎉🎉 May God bless you abundantly dear Shradha!! 🏆🥉🎖🥇🏅🏅🎊🎉🪄🌹🌹🌹✨✨✨ Lots of love from Tamilnadu and Bangalore.. ❤❤❤❤❤❤❤❤❤❤❤❤
Thank you mam for giving the whole python course its helped all the students who eager to learn the python like me one more request plz make some videos for python libraries
at 45:09 you have made a new variable idx for tracing index of x. But my question if it was a list so we have to make a new variable. But this question is for tuple and there was a function nums.index(x) which gives the index of given value. I have used that function and my code runs same and yours. So it is Ok to use it if we have to make our code short. Btw love your videos, thanks for this series ♥♥🤗
Thank you so much !!!!! Never able to write even one line of the code but now I am able to solve the practice questions. I'm really feeling so confident..❤❤❤❤❤❤❤❤
nums = (1,5,7,9,6,) x = 7 i = 0 while i < len(nums): if(nums[i] == x): print("Found at idx", i) break # Stop the loop once the element is found i += 1 # Continue to the next index t @shradha khapra This is the right code to fins the value of X you didn't use break due to code is running even after finding the Value of X
for table upto 10 i did this : yournum = int(input("enter your number: ")) ind = 1 for i in range(yournum, (yournum*11), yournum): print ("2 x ",ind, " = ", i) ind+=1 #working fine
mam your teaching is so good. can you please make a dsa series with python. There are very few good videos in DSA in python. You teaching is so simple. they make things too complex. Vote For DSA in Python 👇
key concepts/topics :---> 00:01 Chapter Five covers details about for and while loops in Python 02:30 Introduction to while loops in Python 06:29 Loops in Python help to repeat a set of instructions until a specific condition is met. 08:30 Loops are used to execute a set of statements multiple times 12:42 Using loops in Python to print numbers from 1 to 100 and in reverse order 14:53 Printing multiplication table using loops in Python 18:52 Printing multiplication tables and looping through a list in Python. 21:04 Using loops to iterate through lists and tuples 24:58 Understanding loops in Python 26:53 Explaining the process of searching in Python using loops 30:44 Understanding the break keyword in Python loops 32:38 Using loops in Python to search and print a number 36:28 For loops are used for sequential traversal of elements in a sequence. 38:08 For loop in Python iterates over a sequence of elements. 42:06 Using for loop for iterating through a string 44:11 Using for loops in Python to iterate through elements and track their index. 48:14 Using range function to iterate through sequences. 50:03 Loops in Python allow for iteration with conditions and step sizes. 53:59 Understanding the usage of 'pass' statement in loops. 55:51 Loops in Python are essential for executing repetitive tasks. 59:39 Factorial calculation using For Loop in Python 1:01:46 Understanding while and for loops in Python thank you everyone
shradha you are a star. I tried to learn from so many other TH-cam videos but their way of teaching was so complex, however, you explained the topic of LOOP in detail and in simplified ways resulting in understanding it so well. Thank you so much and God bless.
00:01 Chapter Five covers details about for and while loops in Python
02:30 Introduction to while loops in Python
06:29 Loops in Python help to repeat a set of instructions until a specific condition is met.
08:30 Loops are used to execute a set of statements multiple times
12:42 Using loops in Python to print numbers from 1 to 100 and in reverse order
14:53 Printing multiplication table using loops in Python
18:52 Printing multiplication tables and looping through a list in Python.
21:04 Using loops to iterate through lists and tuples
24:58 Understanding loops in Python
26:53 Explaining the process of searching in Python using loops
30:44 Understanding the break keyword in Python loops
32:38 Using loops in Python to search and print a number
36:28 For loops are used for sequential traversal of elements in a sequence.
38:08 For loop in Python iterates over a sequence of elements.
42:06 Using for loop for iterating through a string
44:11 Using for loops in Python to iterate through elements and track their index.
48:14 Using range function to iterate through sequences.
50:03 Loops in Python allow for iteration with conditions and step sizes.
53:59 Understanding the usage of 'pass' statement in loops.
55:51 Loops in Python are essential for executing repetitive tasks.
59:39 Factorial calculation using For Loop in Python
1:01:46 Understanding while and for loops in Python
Abe nalle yaha pe ye notes banane se accha apni notebook Mai kuch notes likhle ,yaha pe koi timepass karne nahi ata Jo yaha se time click karke aage chala jayega 😂
@@trustyopinion tu karta kya hai, student?
@@tooclose80 yes
thanks broo
thanks for this browwww
Practice aspects after the demonstration are highly appreciable.
mam love from village ❤
while True:
print("Did you understand the whole lecture on while, for, range, continue, break, and pass?")
stu = input("Enter 'yes' or 'no': ").lower()
if stu == 'yes':
print("Congratulations! You are the father of coding!")
break
elif stu == 'no':
print("Moye Moye! You are a looser. Keep practicing!")
break
else:
print("Invalid input. Please enter 'yes' or 'no'.")
😂
😂👍
i think there is no use for true btw funny
this served no urpose but legit the funniest thing i read today ngl
edit: that should tell you how boring my day is
code glt h
n=int(input("enter the number "))
fact=1
for i in range(n,0,-1):
fact=fact*i
print(fact)
alternate code for factorial
thanks for the lecture ma'am🙏
SyntaxError: multiple statements found while compiling a single statement
@@nandani._. you must have just copied and pasted and there might have been an indentation error on your part.The code does not have any syntax errors.
For 23:20 mins in question where you have to print the perfect squares of no. 1 - 10
i Found a shorter and easier way to do that
the code is :-
i = 1
while i
You are such a great teacher.
I have learn HTML CSS JS from your videos and
very excited to learn Python. love from Karachi,PAKISTAN.
parda krna + namaz prna + Gunna ka kaam such as BF na krna , Jannat jao Gi
@@jwjkek bro ma software dev hun, 72 hoorein ki quran ma kahen bi nahi ha , ye sirf Molvion ne Banaya Ha , kisi hadees ka galat Menaning nikal kr , Ap ko to pata hi haa , molvi kitna para hotta , 10th fail hota commanly , so wooo too jannat ma hoor ka ilawaa kia hi mang skta , Han Bakki islam apna laws ki base par hard ha kaffii, but need base pe Forran Islam Easiest hojata ha , baki bro ap ko kisi bi religion ka mazk nahi urnana chahce , as maNe apke religion ko bura to nahi kaha , So apko bi mera religion ko buran nahi kahna chahce.
In Sha ALLAH
Yeah, absolutely right..
This series is great and has helped me learn Python from scratch. Please after completing this series make some videos for Python libraries like NumPy, Pandas, Matplotlib, Scikit, etc. This will help lots of students who wants to learn more about Python.
Thanks a lot Shraddha Mam🌟.A well suited contents I have got from this lecture. I stated learning python in 2k24 and in the month of April✨️. Have a good life ahead.
Thankyou mam for giving this python course free of cost❤
great learning with great teacher like you, thanks for this course
great , azeeeeeeeeem teacher , i always prefer This Human for code, Love from pakistan, Punjab, T_T--Sing
Ye bandi ki vajah se mene sare program khud banaye. Love you shraddha. Itani c age me itna kuch. I hats off to your dad. Aman you are hell lucky to have her in your life
Thanks Man
In this 5 series, loops series are amazing 😊
The way of teaching is too osm ..what a effort mam thanku so much for the great ful vedeos with free of cost
1 Hi didi
2 Hi didi
3 Hi didi
4 Hi didi
5 Hi didi
6 Hi didi
7 Hi didi
8 Hi didi
9 Hi didi
10 Hi didi
11 Hi didi
12 Hi didi
13 Hi didi
14 Hi didi
15 Hi didi
16 Hi didi
17 Hi didi
18 Hi didi
19 Hi didi
20 Hi didi
21 Hi didi
22 Hi didi
23 Hi didi
24 Hi didi
25 Hi didi
26 Hi didi
27 Hi didi
28 Hi didi
29 Hi didi
30 Hi didi
31 Hi didi
32 Hi didi
33 Hi didi
34 Hi didi
35 Hi didi
36 Hi didi
37 Hi didi
38 Hi didi
39 Hi didi
40 Hi didi
41 Hi didi
42 Hi didi
43 Hi didi
44 Hi didi
45 Hi didi
46 Hi didi
47 Hi didi
48 Hi didi
49 Hi didi
50 Hi didi
51 Hi didi
52 Hi didi
53 Hi didi
54 Hi didi
55 Hi didi
56 Hi didi
57 Hi didi
58 Hi didi
59 Hi didi
60 Hi didi
61 Hi didi
62 Hi didi
63 Hi didi
64 Hi didi
65 Hi didi
66 Hi didi
67 Hi didi
68 Hi didi
69 Hi didi
70 Hi didi
71 Hi didi
72 Hi didi
73 Hi didi
74 Hi didi
75 Hi didi
76 Hi didi
77 Hi didi
78 Hi didi
79 Hi didi
80 Hi didi
81 Hi didi
82 Hi didi
83 Hi didi
84 Hi didi
85 Hi didi
86 Hi didi
87 Hi didi
88 Hi didi
89 Hi didi
90 Hi didi
91 Hi didi
92 Hi didi
93 Hi didi
94 Hi didi
95 Hi didi
96 Hi didi
97 Hi didi
98 Hi didi
99 Hi didi
24:30
i = 1
while i
gooooood
hiiiii
code ko comment me karn ke lye konsa key use karna padta hai ???
@@RahulSingh-ml9hgkeyboard
Iski practice krne k liye koi app??
@@RahulSingh-ml9hg use # for single comment and use ctrl + forward slash for multi line comment
I never see such a great teacher in my life
more specified multiplication table.
n=int(input("enter any number you wish to print the multiplication table"))
i= 1
while i
Simply you can also do this using f string
its look like this:
n=int(input("Enter your number"))
i=1
while(i
@@Keshab2008-v7v print(f"{n}×{i}={n}*{i}") is wrong
print(f"{n} × {i} = {n*i}") right statement.
24:37 created the question 4 by following code:
i=1
while i
yeah,i did by i**2
Hello all
This one the best python basic lecture you will ever get,
In the entire video she never asked for subscribe or like.
Let’s encourage her to do more courses like this and help crores of students and learner’s. Keep up the good work Shraddha and keep on helping people.
# Let's Advance Practice with shradha didi for your better improvement and also helps in enhance your knowledge
# 1) Print number from 1 to 100 using while loop
i = 1
while i = 1:
print(i)
i -= 1
# 3) Print the multiplication table of a number n.
num = int(input("Enter your print table number 1 to : "))
i = 1
while i
x=int(input("enter the no. upto which you have to add numbers: "))
while True:
print(x*(x+1)/2)
break
58:52
wrote this using while
Best Programing Teacher for ever❤
How simply u are explaining 👏
hard work really appreciating
This is the best lecture . I have ever seen of your channel..... Shraddha Didi ❤
a=int(input("Enter the value of n"))
i=1
b=0
while(i
অনেক অনেক ধন্যবাদ
এই ভিডিও গুলির জন্য। 🙏🙏🙏
The best series of python course is here according to my opinion.your teaching power is Amazingg>>>>>>>>
Impressive! Your fluency in computer languages and teaching skills are top-notch. Your detailed explanations are truly impressive and I find your teaching style to be the best. Keep up the amazing work and please continue creating such informative videos in the future. You're a rockstar!
Shradha!! You are awesome and splendid way of teaching like a non stop train! ❤❤🎉🎉🎉🎉🥰🥰👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻
No funs, no jokes ONLY the subject.. Still we are never bored and so interesting alll the sessions are!!! 🍫🍫🍫🍧🍧🍨🍨🍨
Gorgeous Beauty and amazing Brain!! Topnotcher..! 😍😍😍😍🎉🎉🎉
May God bless you abundantly dear Shradha!! 🏆🥉🎖🥇🏅🏅🎊🎉🪄🌹🌹🌹✨✨✨
Lots of love from Tamilnadu and Bangalore.. ❤❤❤❤❤❤❤❤❤❤❤❤
loops aaj tak sabse tough lagta tha but cleared every doubt thank you for providing everything for free you are amazing god bless you and your team
दीदी यू are a good home tutor!!!😂😂😂😂👍
thanks didi you taught really well for understand me loops in few days back i have
not understand loops but your teaching concept is really good
Thank you mam for giving the whole python course
its helped all the students who eager to learn the python like me
one more request plz make some videos for python libraries
amazing and easiest way of teaching python in youtube till now.
n=3
while n
#solution
num = [1,4,9,16,25,36,49,64,81,100]
i = 0
while len(num)> i:
print(num[i])
i+=1
at 45:09 you have made a new variable idx for tracing index of x. But my question if it was a list so we have to make a new variable. But this question is for tuple and there was a function nums.index(x) which gives the index of given value. I have used that function and my code runs same and yours. So it is Ok to use it if we have to make our code short. Btw love your videos, thanks for this series ♥♥🤗
THANKYOU SO MUCH MAM FOR THIS BEAUTIFUL SESSION
Thank you so much !!!!!
Never able to write even one line of the code but now I am able to solve the practice questions.
I'm really feeling so confident..❤❤❤❤❤❤❤❤
Microsoft wali please,
full java course laoo.......🎉🎊🎊🎉
Java wale log idhar present kare.......
Java wale present here 😊😊😊
yes
Yes
Already uploaded 😊
@@ishagopinath Java script uploaded hain
Java nhi
#solution
a = 1
while(a
Techer at her best .. thanks for the easy lessons
57:54
my solution
n = 0
while n
Thanks mam for studying me for my half yearly Exam 😃😇 THANKYOU MAM
code for printing square of no. (1-10):
n = int(input("enter no "))
i=1
while (i
Vote for Next Course On ' ' ' JAVA' ' '❤
Best explanation ever❤
Thank you didi❤
user_num = int(input("Enter the number to get table : "))
table = 1
while table
wow great
Thankyou so much ❤❤❤ it was a amazing class for beginners 😊😊
tple = (1, 2, 3, 4)
num = int(input("Enter the number : "))
idx = 0
while idx
nums = (1,5,7,9,6,)
x = 7
i = 0
while i < len(nums):
if(nums[i] == x):
print("Found at idx", i)
break # Stop the loop once the element is found
i += 1 # Continue to the next index t
@shradha khapra This is the right code to fins the value of X you didn't use break due to code is running even after finding the Value of X
Multiplication table:
x = int(input("Enter a no.: "))
for i in range(1,11):
print(f"{x} x {i} =", (x*i))
Love and Respect for Shardha Ma'am from Kashmir ❤
3:00 print("hello
"*50) 🌚
Itna Achay say Sikhati hn mam vedio ko like zaroor krein ❤
at quest 54:05 we can go for this code also
n = int(input("enter the number: "))
for i in range(n,n*11,n):
print(i)
for table upto 10 i did this :
yournum = int(input("enter your number: "))
ind = 1
for i in range(yournum, (yournum*11), yournum):
print ("2 x ",ind, " = ", i)
ind+=1
#working fine
Best teacher for python😊
n = int(input())
i = 1
print("It's a multiplication table of", n)
while i
love you mam apke bajese python sikhane ko mila
list = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
x = 49
a = "loop ended"
for val in list:
if(val == x):
print (x)
print (x,"found")
break
print (val)
print (a)
Fantastic video! Appreciate your teaching style.
Very understanding way of teaching ..👍🖤
you are too good in teaching thank you for being in available for us in online platforms
Great video , I was not having idea about loop , this video helped me a lot. Thank you mam for your help !
For 4th question
i =1
n=1
while i is less or equal to 10:
Print(I*n)
i+=1
n+=1
Easy method
It was my great experience with you 👍 thank you Shradha Di ❤ Love you
My ideas regarding loop got absolutely clear after watching this video.....very much informative and clearly justified
mam your teaching is so good. can you please make a dsa series with python. There are very few good videos in DSA in python. You teaching is so simple. they make things too complex.
Vote For DSA in Python
👇
For 1,4,9....
n = int(input("enter the number:"))
list = [ ]
while n**2
Didi ap bahut acha se samjati hai❤❤❤❤❤❤❤ baki TH-camr se ache
n=int(input("Enter a number"))
r=range(1,n+1)
a=1
for fact in r:
a=a*fact
print(a)
falling in love with your way of teaching.
key concepts/topics :--->
00:01 Chapter Five covers details about for and while loops in Python
02:30 Introduction to while loops in Python
06:29 Loops in Python help to repeat a set of instructions until a specific condition is met.
08:30 Loops are used to execute a set of statements multiple times
12:42 Using loops in Python to print numbers from 1 to 100 and in reverse order
14:53 Printing multiplication table using loops in Python
18:52 Printing multiplication tables and looping through a list in Python.
21:04 Using loops to iterate through lists and tuples
24:58 Understanding loops in Python
26:53 Explaining the process of searching in Python using loops
30:44 Understanding the break keyword in Python loops
32:38 Using loops in Python to search and print a number
36:28 For loops are used for sequential traversal of elements in a sequence.
38:08 For loop in Python iterates over a sequence of elements.
42:06 Using for loop for iterating through a string
44:11 Using for loops in Python to iterate through elements and track their index.
48:14 Using range function to iterate through sequences.
50:03 Loops in Python allow for iteration with conditions and step sizes.
53:59 Understanding the usage of 'pass' statement in loops.
55:51 Loops in Python are essential for executing repetitive tasks.
59:39 Factorial calculation using For Loop in Python
1:01:46 Understanding while and for loops in Python
thank you everyone
n=int(input("ENTER A NUMBER"))
num=range(n,n*10+1,n)
l=1
for i in num:
print(n,"*",l,"=",i)
l+=1
Thanks didi for loops....First comment
great , azeeeeeeeeem teacher , i always prefer This Human for code, Love from pakistan, Punjab, T_T--Sing
a = 1
While a
for i in range(1,11,):
for j in range(1,11,):
print(i,"Mulple",j,"=",i*j)
we can use this for multiplication of number in for &range
Thanks maam m jaha se padh raha hu waha pe ache se ne samjhate ap yaha p free m padha rhe ho thanks 😭🥲🙏
question no. 4 in shortest way:
a = 1
while a
num=[]
i=1
while(i
15:09 maine issay dusre tarike say bhi kiya h solve.
i=100
while i
x=1
while x
write a program to print the table of the n number:
-------------------
number = 2
while number
question:---using for $ range :(print num from 1 to 100 )
code:----
nums=range(1,101)
for i in nums:
print(i)
Code for print the multiplication table for n:
n = int(input("Enter a No:"))
for i in range(1,11):
print(n , "multiplied by", i, 'is', n*i)
17:55 1) i = n
2) while i =
i = 3 # start of tbl
while i Going with user input
n = int(input("enter number:"))
i = 1
while i
great , azeeeeeeeeem teacher , i always prefer This Human for code, Love from pakistan, Punjab, T_T--Sing
great , azeeeeeeeeem teacher , i always prefer This Human for code, Love from pakistan, Punjab, T_T--Sing
22:00 practice question 4
Can we also solve it by:-
i = 1
while i
here is the rock paper scissor.. GAME
import random
item_list=["Rock", "Paper", "Scissor"]
user_choice = input("Your choice = Scissor, Paper, Rock = ")
comp_choice = random.choice(item_list)
print(user_choice, comp_choice)
if user_choice == comp_choice:
print("Match Tie")
elif user_choice == "Rock":
if comp_choice == "Paper":
print("Paper covers Rock, Computer wins")
else:
print("Rock smashes Scissor, You won")
elif user_choice == "Paper":
if comp_choice == "Scissor":
print("Scissor cuts Paper, Computer wins")
else:
print("Paper covers Rock, You won")
elif user_choice == "Scissor":
if comp_choice == "Rock":
print("Rock smashes Scissor, Computer won")
else:
print("Scissor cuts Paper, You won")
hey i added a little thing in it
import random
item_list=["Rock", "Paper", "Scissor"]
user_choice = input("Your choice = Scissor, Paper, Rock = ")
user_choice=user_choice.capitalize()
comp_choice = random.choice(item_list)
print(user_choice, comp_choice)
if user_choice == comp_choice:
print("Match Tie")
elif user_choice == "Rock":
if comp_choice == "Paper":
print("Paper covers Rock, Computer wins")
else:
print("Rock smashes Scissor, You won")
elif user_choice == "Paper":
if comp_choice == "Scissor":
print("Scissor cuts Paper, Computer wins")
else:
print("Paper covers Rock, You won")
elif user_choice == "Scissor":
if comp_choice == "Rock":
print("Rock smashes Scissor, Computer won")
else:
print("Scissor cuts Paper, You won")
@@maryammustafa967 copy paste nice bro
45:20 pls explain error
@@RahulSingh-ml9hg i just added capitalize()
After this Please make Python Intermediate course also & Python exercises discussion for practice
nums = []
i = 0
while i
Your way of explaining is precise
Q3 was something like this for me :
n=3
while n
Wow amazing very important class
i = 1
while i
your the teacher of the year
Te kitani smart n matured he. Hatts off to her parents
ALTERNATE CODE USING WHILE LOOP:
a=int(input("ENTER YOUR NUMBER: "))
b=0
while a