I can bet that no courses can be better then this even that is paid. I have purchased almost 5-6 courses form udemy but i couldn't find anyone better then this. A huge thanks to Mr Naveen Reddy Sir for providing this awesome courses and sir we really appreciate you for providing us such valuable resources.
that man needs much more recognition , seriously i learned from this guy in a couple of months what i learned from college in one academic year , not just in python , but his other topics and his logic
From Tamilnadu, Thanks a million to you to explain in such a great way. Love you brother Navin reddy, Now a days addicted to watch about your python videos
Great Teacher I got in RUclips ,the best part you have mention "we don't teach we educate" it is actual true , I really enjoy your videos ,Thanks for teaching
Dear Sir. This is a very valuable series. I got the same result with below code. for i in range(4, 0, -1): # starting each row from the heighest size for j in range(i): # Printing each column inside each row according to row size print("#", end="") print() # Printing a new line to start a new row Please do more stuff like this. Respect from a SriLankan..............!!!!
The way you have thought is really amazing. The step-by-step approach actually made me understand how the loops work and gladly I don't even need to memorize it. You have made it 100x easier to understand. Thank you so much, sir. Telusukunnanu ;)
I'm a beginner.I liked the way he teaches. Started watching his videos in the morning 11 a.m and now reached 21st video by this time on the very same day. wonderful job sir.Nobody can teach the way he teaches.
1st pattern:==> for i in range(1,5): for j in range(1,5): k=i+j-1 if k>4: print("",end="") else: print(k,end="") print() 2nd pattern:==> x='ABCD' y='PQR' for i in range(1,5): print(x[:i]+y[i-1:])
1) for i in range(1,6): for j in range(i,5): print(j,end="") print() 2) s1="ABCD" s2="PQR" l=len(s1) for i in range(0,4): for j in range(i+1): print(s1[j],end="") for k in range(i,3): print(s2[k],end="") print()
For the reverse I used range and gotten the same result which is pretty cool. Code: for i in range(5,0,-1): for j in range(i): print("# ", end="") print()
I have started learning Python using this course and I can tell it is simply amazing! Thank you Navin! Short videos which are all easy to follow is the key of success of this course. I love it.
@ 04:24 we can use only one for loop for similar kind of values. 1) for i in range(4): print("* " * 4) o/p : * * * * * * * * * * * * * * * * 2) @ 5:42 row = 4 start_point = 1 for i in range(row): print("* " * start_point) start_point += 1 o/p : * * * * * * * * * *
Now I am getting this in my brain exactly just one day before my exams but now I am understanding every point and now I am gaining some confidence and if I will be practising this type of things ,my logic building will increase .
#1 For i in range (1,5): For j in range (i,5): Print(j,end="") Print() #2 a="ABCD" b="PQR" for i in range (4): For j in range (3): Print(a[0:i+1],end="") Print(b[i:j+3],end="") Break Print()
I think there is no need for j in the sixth line just i:3 is fine and this solution have no blank space in a and b list. I have a better one: a = "APQR" b = "ABCD" for i in range(4): for j in range(i+1): print(b[j], end=" ") for k in range(j, 3): print(a[-(3-k)], end=" ") print()
@@boyanghu1222bro that's so clever Can u please tell me how to reach this level of reasoning Does it come with practice or do I have to be gifted to crack it Please respond if possible
@@imissedthepartwherethatsmy9305 Hey bro, thanks very much for the appriciation! But unfortunately I was just an amatuer, who studies Python for his research paper. However what I want to tell you is that, first of all you must know the fundamental knowlege very well and remember them deeply. And then do more practical exercises. This level is not that difficult to reach. By the way, I have learned Python on and off for about more than half a year.
I am watching this course 2 yrs after the date it was uploaded but it still seem to be up to date. Awesome teacher and very well explained. Can watch your videos whole day. Thx for this course and for helping us learn.👍👍👍👍
Naveen Sir, You have a wonderful way of teaching..I will always remember you for the change you have made in my life. Learning any Programming language was always so boring and challenging task for me but now I always look forward to your python series as I find it very easy and interesting. God bless you, Sir!
Answers for 1st and 2nd: for i in range(5): for a in range(4-i): print(a+1+i,end='') print() 😑2nd one: a,b="ABCD","PQR" for i in range(4): print(a[:i+1]+b[i:]) Thank you SIR 😊
That's really fantastic master. Currently my platform is uipath but I have interest to learn more technologies. So finally I decided to learn python. So in that RUclips is doing much favor the guys who want to learn anything. So in that you crated a good platform to learn a python such a easy way and very logically. Thank you very much Master. Finally my conclusion is in any schools, colleges and any where the persons who are being like you then every one will became a great learner and they will reach their goal.
1st Assignment: for j in range(1,5): for i in range(j,5): print(i,end="") print() 2nd Assignment: i="ABCD" j="PQR" for l in range(1,5): print(i[0:l]+j[l-1:len(j)])
string=input("Enter any symbol :") row=int(input("enter number of row :")) column=int(input("enter number of column :")) for i in range(row): for j in range(column): print(string,end='')
print() Made this myself thanks to the channel for making me interested in python
x = int(input("enter no or rows")) for i in range(x): for j in range(x-i): print(j+i+1, end=" ") print() came late, but had fun. Also I noticed for the same code in 5:45, My pattern is flipped upside down(which you reversed btw(which when i tried got you first pattern)). Do you think this is because of the updated pycharm versions.
I can't comment anywhere, but when i see these video, i told from bottom of heart your teaching procees to great for new student, all basics you have covered, thank you!!
For Question 2: This will be a generic solution where str1 and str2 can be replaced by any characters irrespective of the length of the strings. str1="ABCD" str2="PQR" i=0 while i < len(str1) : for j in range(0,i+1): print(str1[j],end=" ") for k in range(i,len(str2)): print(str2[k],end=" ") i+=1 print()
1)for i in range(4): for j in range(4-i): print(j+1+i," ",end="") print() 2)str1='ABCD' str2='PQR' for i in range(4): print(str1[ : i+1 ] + str2[ i : ])
Learning from your Python series for a job switch. I have been following you since college. Whenever I need help in coding, I watch out your videos. Thank you very much, Sir!
Great Teacher I got in RUclips ,the best part you have mention "we don't teach we educate" it is actual true , I really enjoy your videos ,Thanks for teaching thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
(1) string = '1234' for i in range(len(string)): print(string[i:]) (2) string1 = 'APQR' string2 = 'ABCD' for i in range(len(string1)): string1 = string1.replace(string1[i], string2[i]) print(string1)
@@ishaningale4360 i value will be incremented each time and range will also chnages. At first i=0 and [i:] means i value to end of list, When i is 0 it will print 1234 after that i will be increment to 1. so here [i:] means [1:] it will print values from first index to end so here it will print 234 and it goes on
c=int(input("enter any limit for columns")) r=int(input("Enter any limit for rows")) for i in range(r): for j in range(c): print("#",end="") print() p.s: I tried this as sir was teaching ,thank you so much navin sir. ❤😁
Great explanation. I was able to simpify this even more using the following: for i in range(4): print("# " * 4) for i in range(4): print("# " * (i+1)) for i in range(4): print("# " * (4-i))
All the three patterns can be done using one loop: 1) for i in range(5): print('#'*5) 2)for i in range(5): print('#'*i) 3) for i in range(6,1,-1): print('#'*i)
Sure this guy will take my big, I mean big pocket soda when I reach him out, I pledge to touch a life like he has done to me. will mentor whole good individuals courtesy of Neveen and the team.
Navin, your videos are simply superb. They are short with full of content. A small suggestion though. When watching on a mobile the font looks very small. Zooming into the coding area and changing the background color can lessen the strain on eyes. Thank you once again for the great videos.
solution1st: for i in range(4): for j in range(i,4): print (j+1,end="") print() solution 2nd: chr='ABCDPQR' for i in range(4): print(chr[0:i+1],end="") print(chr[4+i:7]
@@vishnupriyam2926 because there are 7 characters 'ABCDPQR' for position 0 to 6 . so when you give the end point at 7 it actually access the sixth character as the final character.
The way you are teaching is exceptional and because of teaching in different style we are able to understand the topics easily. i am greatful to find your courses on youtub. there so many related topics but problem solving and logic building idea provided by you is totally exceptional. Thank you Navin sir.👌👌
Answer (a) for i in range(1, 5): for j in range(i, 5): print(j, end=" ") print() (b) a = "ABCD" b = "PQR" for i in range(0, 4): for j in range(0, i+1): print(a[j], end=" ") for k in range(j, 3): print(b[k], end=" ") print()
2nd Problem: a = ('A','B','C','D') b = ('P','Q','R') for i in range (4): for j in range (4): if i>=j: print(a[j],end ="") else: print(b[j-1],end ="") print()
what an awesome explanation, the way you break the steps 1 by 1 to let every noob understand the rhythm of loop, excellent work here, hats off to you Sir. I liked the way you went from bottom to top, like no body does this way. what a great Teacher. Actually I was watching Other courses and at one point I was stuck and cant get the way people explaining LOOP. Finally, this was the One were I had to stop searching for Other Teachers. Thanks a lot Sir, Appreciate you. Timing of video 4:11 were I was like😲
Ohh myy godd u just made it so simpler, i even don't know when it starts and when it ends. U r amazing seriously learning language(patters....) With no recognition... 👍👍
To my knowledge so far in my career in IT industry this is the first ever time I have understood the concept of inner loop and how it gets displayed by the outer loop has been an eye opener . Thank you Mr Naveen Reddy for your overwhelming contribution and support to the world in the field of technology.
I can bet that no courses can be better then this even that is paid. I have purchased almost 5-6 courses form udemy but i couldn't find anyone better then this. A huge thanks to Mr Naveen Reddy Sir for providing this awesome courses and sir we really appreciate you for providing us such valuable resources.
even i had some paid courses of udemy but this is the best ......
Riyaz mhd hats off*
@@sss2393 lol
Yes,sssssssssssss
sure he is out to create people's mind by removing litter of technology in our mind, thank sir
that man needs much more recognition , seriously i learned from this guy in a couple of months what i learned from college in one academic year , not just in python , but his other topics and his logic
From Tamilnadu, Thanks a million to you to explain in such a great way.
Love you brother Navin reddy, Now a days addicted to watch about your python videos
Great Teacher I got in RUclips ,the best part you have mention "we don't teach we educate" it is actual true , I really enjoy your videos ,Thanks for teaching
Trust me it's much better than any paid course's . Truely appreciable work. Thanks sir for giving such type of knowledge 🙂
str1='ABCD'
str2='PQR'
for i in range(4):
print(str1[ : i+1 ] + str2[ i : ])
Too good and easy method just loved it
that's great :)
Dont understand it properly...
What does that statement means
Print(str1[:i+1])
:
@@sonikunj696 it means from zero index to i+1 index all element.namely as range(0,i+1)
@@sonikunj696 this sign defines interval i.e if u want to go from begining to 4th one element in the list,
then u have to use like [ :5]
Dear Sir. This is a very valuable series. I got the same result with below code.
for i in range(4, 0, -1): # starting each row from the heighest size
for j in range(i): # Printing each column inside each row according to row size
print("#", end="")
print() # Printing a new line to start a new row
Please do more stuff like this. Respect from a SriLankan..............!!!!
The reason for learning this explained in 45 seconds. This is hat I have found gold with Navin's videos, in addition the the solid walk through.
I've watched a 6 hour course and used sololearn and this was never properly explained. You explained perfectly. I commend you
You definitely saw Mosh classes
i know the sololearn pain
@@mysteri0us_998 they give you a pretty decent framework, but the application isnt taught well imo
@@brodycates8472 ok
i can understand i couldnt understand object oriented programming , generators and stuff from that course
The way you have thought is really amazing. The step-by-step approach actually made me understand how the loops work and gladly I don't even need to memorize it. You have made it 100x easier to understand. Thank you so much, sir.
Telusukunnanu ;)
I'm a beginner.I liked the way he teaches. Started watching his videos in the morning 11 a.m and now reached 21st video by this time on the very same day. wonderful job sir.Nobody can teach the way he teaches.
1st pattern:==>
for i in range(1,5):
for j in range(1,5):
k=i+j-1
if k>4:
print("",end="")
else:
print(k,end="")
print()
2nd pattern:==>
x='ABCD'
y='PQR'
for i in range(1,5):
print(x[:i]+y[i-1:])
1)
for i in range(1,6):
for j in range(i,5):
print(j,end="")
print()
2)
s1="ABCD"
s2="PQR"
l=len(s1)
for i in range(0,4):
for j in range(i+1):
print(s1[j],end="")
for k in range(i,3):
print(s2[k],end="")
print()
(1,5) *
@@sourabhvyas7097 at least try first
For the reverse I used range and gotten the same result which is pretty cool. Code:
for i in range(5,0,-1):
for j in range(i):
print("# ", end="")
print()
I used this:
x=4
while x>0:
for i in range(x):
print('# ',end="")
print()
x-=1
@@sriabhirammuthadi4249 smort 🗿
I have started learning Python using this course and I can tell it is simply amazing! Thank you Navin! Short videos which are all easy to follow is the key of success of this course. I love it.
#Solution for 2nd problem
for i in range(4):
for j in range(4):
if(i
Nice thinking
good work
How to work this code plz understand me how to implement this logic plz help me🤔🤔
You are intelligent ❤
Very good.....
Awesome...
Better than paid courses...
exactly
I don't know if there is any paid courses as I am new on Net
Yes
Navin, you saved me. I owe you, sir. You don't know that you are my guide.
and, now he knows it 🙂🙂.
a=['A','B','C','D']
b=["P","Q","R"]
for i in range (4):
for j in range(4):
if j
You are a very good and passionate teacher. Indian people are the best in programming! Greetings and respect from Rome, Italy.
for i in range(4):
for j in range (4-i):
print(i+j+1,end="")
print()
thanks for such a wonderful course for free sir
for 1 ques
for i in range(4):
for j in range(4-i):
print(j+i +1, end=" ")
print()
Thanks bro, from Afghanistan 🇦🇫
@ 04:24
we can use only one for loop for similar kind of values.
1) for i in range(4):
print("* " * 4)
o/p :
* * * *
* * * *
* * * *
* * * *
2) @ 5:42
row = 4
start_point = 1
for i in range(row):
print("* " * start_point)
start_point += 1
o/p :
*
* *
* * *
* * * *
How colleges dont license this dude is beyond me, in depth explanation barney style, thank you for taking the time to do this.
Now I am getting this in my brain exactly just one day before my exams but now I am understanding every point and now I am gaining some confidence and if I will be practising this type of things ,my logic building will increase .
FOR 1st pattern
for i in range(5):
for j in range (4-i):
print(j+i+1,end =" ")
print()
By far the best technical teacher I have seen. Navin, keep your passion for technology and teaching going. You have a gift and you are a gift!
A ="ABCDPQR"
for i in range(4):
for j in range(7):
if j>i and j
#1
For i in range (1,5):
For j in range (i,5):
Print(j,end="")
Print()
#2
a="ABCD"
b="PQR"
for i in range (4):
For j in range (3):
Print(a[0:i+1],end="")
Print(b[i:j+3],end="")
Break
Print()
@jssriharijaikumar7473 Yes, I also want to know the logic behind this.
@@SarbajitDey @jssriharijaikumar7473 range function always starts at 0 . That's why the j value remains 0 till the end of the loop
I think there is no need for j in the sixth line just i:3 is fine and this solution have no blank space in a and b list. I have a better one:
a = "APQR"
b = "ABCD"
for i in range(4):
for j in range(i+1):
print(b[j], end=" ")
for k in range(j, 3):
print(a[-(3-k)], end=" ")
print()
@@boyanghu1222bro that's so clever
Can u please tell me how to reach this level of reasoning
Does it come with practice or do I have to be gifted to crack it
Please respond if possible
@@imissedthepartwherethatsmy9305 Hey bro, thanks very much for the appriciation! But unfortunately I was just an amatuer, who studies Python for his research paper. However what I want to tell you is that, first of all you must know the fundamental knowlege very well and remember them deeply. And then do more practical exercises. This level is not that difficult to reach. By the way, I have learned Python on and off for about more than half a year.
Ultimate teacher, don't know how to pay gratitude... Sir, better than any paid course... 🥰
1. for i in range(5):
for j in range(i+1,5):
print(j,end="")
print()
It's wrong
Correct bro
But i didnt get answer
@@dineshdinesh-kn1uk jst an indentation error
Give four spaces for second for loop that's it
Ok
answer of question no.2
for i in range (4):
for j in range (4):
if (i
I am watching this course 2 yrs after the date it was uploaded but it still seem to be up to date. Awesome teacher and very well explained. Can watch your videos whole day. Thx for this course and for helping us learn.👍👍👍👍
Naveen Sir, You have a wonderful way of teaching..I will always remember you for the change you have made in my life. Learning any Programming language was always so boring and challenging task for me but now I always look forward to your python series as I find it very easy and interesting. God bless you, Sir!
1.for i in range(1,5):
2. for j in range(i,5):
3. print( j , end=" ")
4. print()
i dont understand the second print, whats that for?
@@almirkazaferovic4041stands for new line
@@_harshasgowda_ tq brh 😜
i=1
while i
for i in range(4):
j=1
while j
Solution for 1st assignment question.
Answers for 1st and 2nd:
for i in range(5):
for a in range(4-i):
print(a+1+i,end='')
print()
😑2nd one:
a,b="ABCD","PQR"
for i in range(4):
print(a[:i+1]+b[i:])
Thank you SIR 😊
your teaching style is really different from others and you are awesome . keep teaching like this you are crushing it through your coarse.
Ur debugging part is the best visualisation i have ever seen. Thank you for putting such an effort in this course.
Tomorrow I have an interview, Thank you sir for all these videos these lectures are better than any paid course or coaching.
As a person that is entirely analogue, I just want to say thank you for helping me understand this subject a little better.
for i in range(4):
for j in range(4-i):
print(i+j+1, end="")
print()
for i in range(1,5):
for j in range(0,5-i):
print(i+j, end="")
print()
This is much Better
can,t understand the thing :(
@@Sadfrictionshorts
i =1
a = ("# " *4)
while i
Answers:
Asgn1:
for i in range(1,5):
for j in range(i,5):
print(j,end=" ")
print()
Asgn2:
x='ABCD'
y='PQR'
for i in range(4):
print(x[:i+1]+y[i:])
can yo please explain this 2nd assingment logic use in print
@@alisabir2440 Debug the program
Or
write that print statement in idle
U will understand....
I actually don't understand it I did debug but that print statement I get confused
what will be the code for asgn 1 if the pattern is in reverse order
@@akshaypathak8280 for i in range(1,5):
for j in range(5-i,5):
print(j,end=" ")
print()
These sessions are really well articulated and explained to a newbie!
That's really fantastic master. Currently my platform is uipath but I have interest to learn more technologies. So finally I decided to learn python. So in that RUclips is doing much favor the guys who want to learn anything. So in that you crated a good platform to learn a python such a easy way and very logically. Thank you very much Master. Finally my conclusion is in any schools, colleges and any where the persons who are being like you then every one will became a great learner and they will reach their goal.
Third pattern can also be drawn in thus way also:
For i in range(4,0,-1):
For j in range(i):
print('*',end=" ")
print()
for i in range(4):
print("# " * 4)
i did the same
this guy is so good and the course is free oh my days. Learned so much from you thanks so much
2)
x,y='ABCD','PQR'
for i in range(4):
print(x[:i+1]+y[i:])
Perfect
How does last line worked
1st Assignment:
for j in range(1,5):
for i in range(j,5):
print(i,end="")
print()
2nd Assignment:
i="ABCD"
j="PQR"
for l in range(1,5):
print(i[0:l]+j[l-1:len(j)])
string=input("Enter any symbol :")
row=int(input("enter number of row :"))
column=int(input("enter number of column :"))
for i in range(row):
for j in range(column):
print(string,end='')
print()
Made this myself
thanks to the channel for making me interested in python
This is way better than some paid courses. Thank you Navin Sir. :)
Sir you are the best.
All courses are nothing before your videos.
Salute you sir.
Because of you now I'm the best python programmer in my class.
x = int(input("enter no or rows"))
for i in range(x):
for j in range(x-i):
print(j+i+1, end=" ")
print()
came late, but had fun.
Also I noticed for the same code in 5:45, My pattern is flipped upside down(which you reversed btw(which when i tried got you first pattern)). Do you think this is because of the updated pycharm versions.
I used
t=-1
for i in range(4):
t=t+1
s=t
for j in range(4-i):
S=S+1
print(s, end="")
Print()
Bro you are just awesome! you made learning python so easy, your energy level and presentation is so good
If you understand in a batter way..
Can u help me out
I am getting an error msg in
print("#",end="")
print("#",end="")
@@letsviraltoday add a print() in last line if you use end=" "
@@arunrajak.b9170 thank u
2)Prob
str1 = ('APQR')
str2 = ('ABCD')
for i in range(1):
print(str1,end="")
print()
i=str1.replace("P", "B")
print(i,end="")
print()
j=i.replace("Q","C")
print(j,end="")
print()
print(str2)
Thanks
Correct..but 1 mistake..at 9th line str1 = I would come
I can't comment anywhere, but when i see these video, i told from bottom of heart your teaching procees to great for new student, all basics you have covered, thank you!!
for i in range(4):
for j in range (4):
if i
For Question 2:
This will be a generic solution where str1 and str2 can be replaced by any characters irrespective of the length of the strings.
str1="ABCD"
str2="PQR"
i=0
while i < len(str1) :
for j in range(0,i+1):
print(str1[j],end=" ")
for k in range(i,len(str2)):
print(str2[k],end=" ")
i+=1
print()
# for assignment quest1
for i in range(1,6,1):
for j in range(1,6-i,1):
print(j,end="")
print()
ans for ass 1:
for i in range(0,5,1):
for j in range(1+i,5,1):
print(j,end="")
print()
1)for i in range(4):
for j in range(4-i):
print(j+1+i," ",end="")
print()
2)str1='ABCD'
str2='PQR'
for i in range(4):
print(str1[ : i+1 ] + str2[ i : ])
Can u explain the logic of 2nd problem
@@chundurupriyanka3980 string slicing
Hats off bro...🙌
@PARTH MODI Really Great
Hi Parth,
I also used same kinda logic bt m getting space between abcd n pqr string like below:
A PQR
AB QR
ABC R
ABCD
Sir, Print triangle patterns it can also write 👇
For j in range (1,5):
For i in range (i):
Print ("#",end="")
Print()
for i in range(4):
print("# " * 4)
Learning from your Python series for a job switch. I have been following you since college. Whenever I need help in coding, I watch out your videos. Thank you very much, Sir!
Yuup
Answer for 1st qst:
for j in range(0,5):
for i in range(j+1, 5):
print(i, end="")
print()
Alternate way of printing second pattern:
a=('# ')
for i in range (1,5):
print(i*a,end='')
print()
thank you this was helpful😇
solution for second is
a="ABCD"
b="PQR"
for i in range (4):
print(a[:i+1]+ b[i:])
wonderful , genius
Great Teacher I got in RUclips ,the best part you have mention "we don't teach we educate" it is actual true , I really enjoy your videos ,Thanks for teaching thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
solution for the first ques
for i in range (1,5):
for j in range(5-i):
print(i+j ,end= "")
print()
print(j+1) should be used instead
(1)
string = '1234'
for i in range(len(string)):
print(string[i:])
(2)
string1 = 'APQR'
string2 = 'ABCD'
for i in range(len(string1)):
string1 = string1.replace(string1[i], string2[i])
print(string1)
Bro can u plz tell the meaning of statement
print(string[i:])
Actually i not getting the meaning of [i:]
@@ishaningale4360 i value will be incremented each time and range will also chnages. At first i=0 and [i:] means i value to end of list, When i is 0 it will print 1234 after that i will be increment to 1. so here [i:] means [1:] it will print values from first index to end so here it will print 234 and it goes on
Awesome Malik Sir..Great Work using only String makes a program very Simple.
# Problem1 solution
for i in range(1,5):
count=i
for j in range(5-i):
print(count, end='')
count += 1
print('')
No output 🙄
c=int(input("enter any limit for columns"))
r=int(input("Enter any limit for rows"))
for i in range(r):
for j in range(c):
print("#",end="")
print()
p.s: I tried this as sir was teaching ,thank you so much navin sir. ❤😁
Great explanation. I was able to simpify this even more using the following:
for i in range(4):
print("# " * 4)
for i in range(4):
print("# " * (i+1))
for i in range(4):
print("# " * (4-i))
All the three patterns can be done using one loop:
1) for i in range(5):
print('#'*5)
2)for i in range(5):
print('#'*i)
3) for i in range(6,1,-1):
print('#'*i)
Sure this guy will take my big, I mean big pocket soda when I reach him out, I pledge to touch a life like he has done to me. will mentor whole good individuals courtesy of Neveen and the team.
Navin, your videos are simply superb. They are short with full of content. A small suggestion though. When watching on a mobile the font looks very small. Zooming into the coding area and changing the background color can lessen the strain on eyes. Thank you once again for the great videos.
Much more easy and worth-fame version of "Printing Patterns". 100% sure, it is an under-rated channel. Well-appreciated your work, sir!
code for 1st assignment:
for i in range(1,5):
for j in range(i,5):
print(j,'',end='')
print()
Assignment1:
for i in range(1,5):
print(i,end="")
for j in range(1,5-i):
print(i+j,end="")
print()
cool answer bro, thanks
Another alternative :- for the 1st assignment:-
num1 = '1234'
for i in range(4):
print(num1[:4-i] and num1[i-4:])
print()
for j in range(5):
for i in range(j+1,5):
print(i,end="")
print()
For 1st pattern
That's so cool.
solution1st:
for i in range(4):
for j in range(i,4):
print (j+1,end="")
print()
solution 2nd:
chr='ABCDPQR'
for i in range(4):
print(chr[0:i+1],end="")
print(chr[4+i:7]
In ur second solution exactly at 4th line why is that indexing is 7 ?
@@vishnupriyam2926 because there are 7 characters 'ABCDPQR' for position 0 to 6 . so when you give the end point at 7 it actually access the sixth character as the final character.
The way you are teaching is exceptional and because of teaching in different style we are able to understand the topics easily. i am greatful to find your courses on youtub.
there so many related topics but problem solving and logic building idea provided by you is totally exceptional.
Thank you Navin sir.👌👌
Answer
(a)
for i in range(1, 5):
for j in range(i, 5):
print(j, end=" ")
print()
(b)
a = "ABCD"
b = "PQR"
for i in range(0, 4):
for j in range(0, i+1):
print(a[j], end=" ")
for k in range(j, 3):
print(b[k], end=" ")
print()
For perfect square pattern i.e 1
for i in range(4):
print('# ' *4)
It'll work definitely
2nd Problem:
a = ('A','B','C','D')
b = ('P','Q','R')
for i in range (4):
for j in range (4):
if i>=j:
print(a[j],end ="")
else:
print(b[j-1],end ="")
print()
wrong
Super bro
for first pattern
for r in range(1,5):
for c in range(r,4):
print(c,end="")
print(c+1)
print()
Question 1:
str1='ABCD'
str2='PQR'
for i in range(4):
print(str1[ : i+1 ] + str2[ i : ])
Question 2:
for i in range(5):
while i
I can feel my brain get LARGER!
@lakshmi prasanna At the end of the vid..
@lakshmi prasanna hey where you find the assignment I am also struggling to find the assignment if you know please tell me
@@bluemeet8546 7:42 just pause vha dikh jayega top
Never seen such comment section flooded with only codes ❤️ Insane !
what an awesome explanation, the way you break the steps 1 by 1 to let every noob understand the rhythm of loop, excellent work here, hats off to you Sir. I liked the way you went from bottom to top, like no body does this way. what a great Teacher. Actually I was watching Other courses and at one point I was stuck and cant get the way people explaining LOOP. Finally, this was the One were I had to stop searching for Other Teachers. Thanks a lot Sir, Appreciate you. Timing of video 4:11 were I was like😲
row=int(input("enter the no of row "))
j=row
while j>=1:
for i in range(j):
print("#",end=" ")
print()
j=j-1
# Print reverse triangle of range(4)
for i in range(4):
for j in range(4-i):
print(i+j+1, end='')
print()
bro i wanna ask why the print() is putted in the end of code? cuz i tried and it was so important but i dont get why
@@juscoding it's for new line ig
@@vipusingh8584 yeah that was the reason, thanks
for j in range(1,5):
for i in range(j, 5):
print(i, end=" ")
print()
sir my answer is this.
wrong answer
Correct answer
tq so much
Whats the use of print() in the end
the answer to the third one can be simplified as:
for i in range(4):
print("#"*(4-i))
easy
in the exam they'll ask fr nested loop
for i in range(rows):
for k in range(rows):
if k >= i:
print('#', end = '')
print('
')
Ohh myy godd u just made it so simpler, i even don't know when it starts and when it ends. U r amazing seriously learning language(patters....) With no recognition... 👍👍
1st PATTERN:
for i in range(1,5):
j=4
for j in range(i,j+1):
print(i,end="")
i+=1
print()
Print(j,end="")
Not i
😁
Amazing Series Navin Sir, thoroughly enjoyed it.Kudos!
str="1234"
for i in range(4):
print(str[i:])
Bro explain this maan
Explain b krdo
it was cool bro
@@ektadhapola9698
i = 0 str[0:] 1234
i = 1 str[1:] 234
..
.
str[start_limit:end_Limit]
it's a Greattt solution..!! ;)
To my knowledge so far in my career in IT industry this is the first ever time I have understood the concept of inner loop and how it gets displayed by the outer loop has been an eye opener . Thank you Mr Naveen Reddy for your overwhelming contribution and support to the world in the field of technology.
bro what job you are doing now?
1st
for i in range(4):
for j in range(4-i):
print(i+j+1,end="")
print()