i=20 print(i%19)=1 but print(i%21)=20 why?? when i do it on paper it will give 11 if answer is in desimal then how the python give 20 as an output ??
@SiyaRajput-k8c5 ай бұрын
I am not understand perfectly because of so many bracket not execute my code
@sayanghosh69963 жыл бұрын
watching this with the knowledge of loops is torture xD
@sayanghosh69963 жыл бұрын
@@jeremy_fragrance_desi because this is painful to look at when you already know all of this can be done in 2-3 lines using loops. not only is it small but also more soft-coded (as opposed to hard-coded) and considered a good programming practice. People who dont know programming already are not expected to know all this in week 1 or 2, so dont worry about it too much. once you learn it in future weeks, it would be clear.
@hydrival3 жыл бұрын
Especially with a Java background lol XD
@roshanekka96873 жыл бұрын
Ok Einstein, no need to make a fuss about that here
@sayanghosh69963 жыл бұрын
@@roshanekka9687 lol, there's nothing special about it, wait for 1 or 2 more weeks you'll learn that yourself. And stop taking everything as an attack lol chill.
@AMITKUMAR-mq6wh3 жыл бұрын
@@sayanghosh6996 Watch at 2x....
@shashank170716 күн бұрын
0:50 Why it is showing error when I execute this code? In vsc.
@SamparkLakshya4 күн бұрын
can you plz paste your code here
@shashank17073 күн бұрын
@SamparkLakshya its working now.
@054_nirajkumar33 жыл бұрын
@ 20:40 what was that error with Capital "I", why it need to change by small i???
@abhishekkumarrai49753 жыл бұрын
because 'I' is not present in alpha. String alpha is a collection of alphabets in small cases only.
@meriid70172 ай бұрын
Dhnaywaad
@ayushlabroo62382 жыл бұрын
Why % 26 is added ?
@raj_patel2 жыл бұрын
As per my understanding what if the name is "zoo".? we want ith+1 letter. So we want a z+1 letter. it's a. so 26%26 = 0 and we will get 'a'. (Maybe I am wrong, please correct me if I am)
@amanpetwal97602 жыл бұрын
you are absolutely right 👍
@raj_patel2 жыл бұрын
@@amanpetwal9760 hmm. NIT + IIT. BigBrain :)
@amanpetwal97602 жыл бұрын
@@raj_patel thanks brother ❣️
@aswathyjanaki1093 жыл бұрын
Good class compared to the other sir
@054_nirajkumar33 жыл бұрын
थैंक्यू
@altairlight5729 Жыл бұрын
nice pedagogy
@siddharthsoni10009 ай бұрын
better to use ord() , chr() functions
@kmishy3 жыл бұрын
9:50 This can be also done like this alpha='abcdefghijklmnopqrstuvwxyz' name="manish" nname='' for i in name: ind=alpha.index(i) +1 nname+=alpha[ind] print(nname)
@cookietree5625 Жыл бұрын
alpha = 'abcdefghijklmnopqrstuvwxyz' name = input("Enter your name:") new_name = '' for i in name: k = (alpha.index(i)+1)%26 new_name += alpha[k] print(f" {new_name}") your code was breaking at "z" so i fixed it with some more additions like an input from user :)
@tensorcodes Жыл бұрын
But loops are not explained yet
@nighteagle5529 Жыл бұрын
@@cookietree5625why in print function the f exists. Plz reply
@abhinavchaitanya5769 Жыл бұрын
@@nighteagle5529Its a format specifier.
@AK-ko3pw Жыл бұрын
@@cookietree5625 alpha = "abcdefghijklmnopqrstuvwxyz" name=input("Enter your name - ") updated_name= "" for i in range(len(name)): k = alpha[((alpha.index(name[i]))+1)%26] updated_name+=k print(updated_name)
@DHEERAJSINGH-b9e2 ай бұрын
we really doesn't need to put that much ( ) there they'll not getting any error
@DHEERAJSINGH-b9e2 ай бұрын
i=25 i%26 how the remainder would be 25
@rishabgangwar99013 жыл бұрын
whenever I see joe I just say, "Hey, How you doin'?"
@Karan-sq5el3 жыл бұрын
Too much sound echo is there. Bad quality mic
@amanbhanvadia21693 жыл бұрын
Is this included in week 1
@avenumadhav35683 жыл бұрын
This is from Week 2, precisely L2.7
@minutecodingtips2 жыл бұрын
@@avenumadhav3568 sir are you a student of diploma or Degree or Foundation. I see you time stamped a lot of lectures from the different subject. Thanks for helping us out🙏