An Interesting Cipher: More on Strings

  Рет қаралды 57,472

IIT Madras - B.S. Degree Programme

IIT Madras - B.S. Degree Programme

Күн бұрын

An Interesting Cipher: More on Strings
"Week: 2
Topic: An Interesting Cipher: More on Strings" IIT Madras welcomes you to the world’s first BSc Degree program in Programming and Data Science. This program was designed for students and working professionals from various educational backgrounds and different age groups to give them an opportunity to study from IIT Madras without having to write the JEE. Through our online programs, we help our learners to get access to a world-class curriculum in Data Science and Programming.
To know more about our Programs, please visit :
BSc Degree in Programming and Data Science - onlinedegree.i...
Diploma in Programming / Data Science - diploma.iitm.a...

Пікірлер: 36
@sayanghosh6996
@sayanghosh6996 3 жыл бұрын
watching this with the knowledge of loops is torture xD
@sayanghosh6996
@sayanghosh6996 3 жыл бұрын
@@rahulfederer20 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.
@hydrival
@hydrival 3 жыл бұрын
Especially with a Java background lol XD
@roshanekka9687
@roshanekka9687 3 жыл бұрын
Ok Einstein, no need to make a fuss about that here
@sayanghosh6996
@sayanghosh6996 3 жыл бұрын
@@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-mq6wh
@AMITKUMAR-mq6wh 3 жыл бұрын
@@sayanghosh6996 Watch at 2x....
@054_nirajkumar3
@054_nirajkumar3 3 жыл бұрын
@ 20:40 what was that error with Capital "I", why it need to change by small i???
@abhishekkumarrai4975
@abhishekkumarrai4975 3 жыл бұрын
because 'I' is not present in alpha. String alpha is a collection of alphabets in small cases only.
@054_nirajkumar3
@054_nirajkumar3 3 жыл бұрын
थैंक्यू
@aswathyjanaki109
@aswathyjanaki109 2 жыл бұрын
Good class compared to the other sir
@ayushlabroo6238
@ayushlabroo6238 2 жыл бұрын
Why % 26 is added ?
@raj_patel
@raj_patel 2 жыл бұрын
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)
@amanpetwal9760
@amanpetwal9760 Жыл бұрын
you are absolutely right 👍
@raj_patel
@raj_patel Жыл бұрын
@@amanpetwal9760 hmm. NIT + IIT. BigBrain :)
@amanpetwal9760
@amanpetwal9760 Жыл бұрын
@@raj_patel thanks brother ❣️
@kmishy
@kmishy 3 жыл бұрын
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
@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
@tensorcodes Жыл бұрын
But loops are not explained yet
@nighteagle5529
@nighteagle5529 11 ай бұрын
​@@cookietree5625why in print function the f exists. Plz reply
@abhinavchaitanya5769
@abhinavchaitanya5769 10 ай бұрын
​@@nighteagle5529Its a format specifier.
@AK-ko3pw
@AK-ko3pw 9 ай бұрын
@@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)
@siddharthsoni1000
@siddharthsoni1000 6 ай бұрын
better to use ord() , chr() functions
@amanbhanvadia2169
@amanbhanvadia2169 3 жыл бұрын
Is this included in week 1
@avenumadhav3568
@avenumadhav3568 3 жыл бұрын
This is from Week 2, precisely L2.7
@minutecodingtips
@minutecodingtips Жыл бұрын
@@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🙏
@rishabgangwar9901
@rishabgangwar9901 3 жыл бұрын
whenever I see joe I just say, "Hey, How you doin'?"
@altairlight5729
@altairlight5729 Жыл бұрын
nice pedagogy
@Karan-sq5el
@Karan-sq5el 2 жыл бұрын
Too much sound echo is there. Bad quality mic
@SiyaRajput-k8c
@SiyaRajput-k8c 2 ай бұрын
I am not understand perfectly because of so many bracket not execute my code
Introduction to the if statement
9:08
IIT Madras - B.S. Degree Programme
Рет қаралды 38 М.
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Two Minute Papers
Рет қаралды 195 М.
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 3,3 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 66 МЛН
Birthday Paradox
25:39
IIT Madras - B.S. Degree Programme
Рет қаралды 38 М.
how Google writes gorgeous C++
7:40
Low Level
Рет қаралды 888 М.
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,9 МЛН
The Home Server I've Been Wanting
18:14
Hardware Haven
Рет қаралды 141 М.
Solving Wordle using information theory
30:38
3Blue1Brown
Рет қаралды 10 МЛН
More on Variables, Operators and Expressions
17:30
IIT Madras - B.S. Degree Programme
Рет қаралды 54 М.
Why Neural Networks can learn (almost) anything
10:30
Emergent Garden
Рет қаралды 1,2 МЛН