Тёмный

2. Branching and Iteration 

MIT OpenCourseWare
Подписаться 5 млн
Просмотров 563 тыс.
50% 1

MIT 6.0001 Introduction to Computer Science and Programming in Python, Fall 2016
View the complete course: ocw.mit.edu/6-0001F16
Instructor: Dr. Ana Bell
In this lecture, Dr. Bell introduces strings and indentation in Python, then discusses basic features of programmatic logic, such as branching, conditionals, iteration, and loops.
License: Creative Commons BY-NC-SA
More information at ocw.mit.edu/terms
More courses at ocw.mit.edu

Опубликовано:

 

14 фев 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 282   
@walawave
@walawave 4 года назад
To whoever made the subtitles for this 40+ minutes video. Thank you.
@juanjo984184333
@juanjo984184333 4 года назад
X2
@30_phuc.phanvinh39
@30_phuc.phanvinh39 3 года назад
X3.
@HKClasher
@HKClasher 3 года назад
X4
@minhcuong4307
@minhcuong4307 3 года назад
X5
@externalpoint861
@externalpoint861 3 года назад
I think its the speech synthesizer
@user-fl7vs4ed6l
@user-fl7vs4ed6l 3 года назад
pre labeling ​0:02:08​ Strings 0:03:48 (Coding) 0:06:31 Input/Output:print 0:08:21 (Coding) 0:09:57 Input/Output:(" ") ​0:12:14 (Coding) ​0:14:00​ Comparison operators on int , float , string 0:17:06 MIT map 0:18:00 0:19:58 Control flow - branching 0:20:00 0:22:00 0:24:51 ​Indentation 0:25:46 =vs== 0:28:00​ 0:28:58 Control flow : while loops 0:31:57 Control flow : while and for loops 0:35:09 ​Control flow : loops 0:36:44 range (start , stop , step)​ 0:38:00​ 0:39:42 (Coding) 0:41:06 break Statement 0:42:26 for vs while loops
@no1reallycaresabout2
@no1reallycaresabout2 3 года назад
You the real MVP
@ChandravijayAgrawal
@ChandravijayAgrawal 2 года назад
thanks for timestamping every video
@xiaochuansun2638
@xiaochuansun2638 10 месяцев назад
Thank you, representative.
@osamakamal7171
@osamakamal7171 3 года назад
Love MIT for their CS OCW!!! One comment to add here. When you ask Python to compare two strings (like mentioned in the video "a" > "b" and the result is False) in the backend, Python is comparing their ASCII values (ASCII value of "a" = 97 and ASCII value of "b" = 98. Hence False)
@ChandravijayAgrawal
@ChandravijayAgrawal 2 года назад
thanks
@r4ko276
@r4ko276 9 месяцев назад
I dont know if this is entirely true, if i do "ab" == "ba". the result is false. (She said something about lexicographical)
@cerulity32k
@cerulity32k 5 месяцев назад
​@@r4ko276String equality checks if two strings have the same contents. Checking if a string is greater than another string (string inequality) checks if the first string comes after the second string if you were to sort them alphabetically.
@lloydyu24
@lloydyu24 7 лет назад
THANK YOU, MIT COURSEWARE and sponsors! ❤️
@PeejTastic
@PeejTastic Год назад
Me and a fellow colleague are leaping into Python (my native language being R). The lecture videos are well-paced and the lecturing style is top notch! I lecture the occasional statistical programming course, and it's not always easy to keep it interesting and engaging like it is here.
@danielkinyanjui5296
@danielkinyanjui5296 3 года назад
You're a good teacher, accessible yet giving your students a chance to learn.
@DarthAbhi
@DarthAbhi 7 лет назад
Dr.Bell, can't thank you enough for the great explanation.
@hemarathroy4121
@hemarathroy4121 4 года назад
I am very lucky and happy to see the smiley ,energetic and enthusiastic face of ANA mam ,when she tried to listen the question that the student asks.BUT AT OTHER PLACES , THIS HAPPENS RARELY BUT NOT IN MIT.
@bjr816
@bjr816 4 года назад
Kind of wish I got to experience CS at MIT. I loved my professors but this is a professor I know I'd like and learn alot from. Plus MIT's reputation is unmatched.
@PeejTastic
@PeejTastic Год назад
Same, except for me it would've been math/statistics. MIT was the only school I couldn't get accepted into (it was my dream school as a high school student). Having access to this open courseware in my 30s gives me a chance to check some of it out (just in a different subject).
@DanielFerreira-gu1di
@DanielFerreira-gu1di 7 лет назад
Really good for a start with Python. Great work Dr. Bell (and Professor Grimson).
@vishalmalaye
@vishalmalaye 4 года назад
Dr. Ana Bell is great teacher.❤❤❤ You are very good at explaining and in all perspective. You are best.Thanks MIT for Dr. Ana Bell. Thanks MIT for OCW.MIT is best and doing great work.
@diggitycat6233
@diggitycat6233 3 года назад
For those curious about how Dr. Bell commented out certain lines of code here's the shortcut list, Single line comment Ctrl + 1 Multi-line comment select the lines to be commented Ctrl + 4 Unblock Multi-line comment Ctrl + 5 P.S: Got this from Stack Overflow so due credit to the actual authors for this query.
@iam_sangu
@iam_sangu 6 лет назад
Wonderful lectures by Prof. Ana Bell. Thank you MIT OCW.
@unrockbaer
@unrockbaer 5 лет назад
Really liked the Zelda example, loved the flipping table :) Well played, Dr. Bell!
@saimahossain332
@saimahossain332 3 года назад
you're brilliant Dr. Bell. love your lectures💜
@abhinavmathur6072
@abhinavmathur6072 5 лет назад
Thank you open courseware for providing such high quality leacture and materials..hope you have a great day😊
@mahiee24
@mahiee24 2 года назад
Had somebody taught flow control statements as clearly as Dr.Bell my coding journey would have been at stratospheric levels...these lecture ignited my hopes of becoming a good programmer...
@shadyhamrouny2143
@shadyhamrouny2143 4 года назад
thank you Dr Ana Bell this was a really helpful and fun course !
@xiaoningdong1654
@xiaoningdong1654 5 лет назад
She is so adorable, I really love her lessons. Thanks MIT.
@damickillah
@damickillah 4 года назад
OMG, these are finally in HD!
@GoutamDAS-ls1wb
@GoutamDAS-ls1wb 3 года назад
Superb video of excellent teaching. I wish she was my professor when I was an undergrad.
@hasankirca8076
@hasankirca8076 4 года назад
VERY VERY thanks ,MIT open coursewarde.
@nitirajdaby2554
@nitirajdaby2554 3 месяца назад
What a smooth lecture ! Thank you ! You helped me understand Python. My professor did a terrible job teaching this. Thanks MIT !
@BackWithTheBoom
@BackWithTheBoom 4 года назад
thank you Dr Bell ! , rock on! better explained than my school lessons 4sure
@rinkushortsdaily
@rinkushortsdaily Месяц назад
I really love this lectures and completed my some basic python syntax and basic algorithm related concepts thanks for this contribution.
@premkumar-zp7gs
@premkumar-zp7gs Год назад
the best lecture on python, the reason why mit is a top college in the world
@billmoran3812
@billmoran3812 3 года назад
Excellent lecture. Makes me wish I were back as a student. this is the best explanation of for & while loops I have seen. I wish I could take this course, but I no longer live in Boston.
@stevemilo6935
@stevemilo6935 2 месяца назад
This is the best MIT has to offer. Good thing its free.
@oluwadaraadepoju5832
@oluwadaraadepoju5832 2 года назад
Dr Bell, you are the best❤❤
@gackerman99
@gackerman99 2 года назад
you can actually use a for-loop to get input in Python - create a simple iterator class where __next__ returns a value from a call to input().
@simonialee1114
@simonialee1114 6 лет назад
best python tutorial ever
@harunrashid4us
@harunrashid4us 2 года назад
Thanking MIT OCW Please upload more 💙
@itsdejinero
@itsdejinero 3 года назад
AMAZING LECTURE
@aymensekhri2133
@aymensekhri2133 4 года назад
Thanks a lot Dr. Anna Bell
@NANA-yh2wx
@NANA-yh2wx 4 года назад
Dr Bell Your class was comfortable and interesting. Thank you for not writing on the board.
@tawfeeqmuallem9086
@tawfeeqmuallem9086 5 лет назад
if course_grade == A: print("this teacher is amazing") elif course_grade in range (A, C+): print("This teacher is really good!") else: if course_grade
@blackjack-ks8zn
@blackjack-ks8zn 4 года назад
Else : If course_grade
@kasiviswanathboddeti9085
@kasiviswanathboddeti9085 3 года назад
Syntax error For else: you shouldn't give a
@asdaware7718
@asdaware7718 7 лет назад
nice lectures delivery....dr bell
@bhanugupta4871
@bhanugupta4871 4 года назад
mam, i really loved the way you teach.
@esergey12
@esergey12 2 года назад
Adorable teacher. Excellent lecture.
@jordymunozaravena3286
@jordymunozaravena3286 7 лет назад
I love your problem sets. They really made me want to hit my head with a piece of wood over and over again. Real learning guys.
@user-kp5kg5dl8h
@user-kp5kg5dl8h 6 лет назад
Jordy Muñoz Aravena The ones found on the website? The ones that make you have to look up everything yourself before you can even do them?
@shivang581
@shivang581 5 лет назад
Hey! Could you please share the link of the problem sets? Thank You!
@ViktorMath
@ViktorMath 5 лет назад
@@shivang581 Here you are ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-0001-introduction-to-computer-science-and-programming-in-python-fall-2016/assignments/
@shivang581
@shivang581 5 лет назад
@@ViktorMath THANK YOU SO VERY MUCH!
@mikeearls126
@mikeearls126 5 лет назад
This woman is so adorably awkward, nervous and brilliant.
@ChandravijayAgrawal
@ChandravijayAgrawal 2 года назад
not really awkward but i think this is her first lecture on this topic
@denniskamonde6836
@denniskamonde6836 7 лет назад
very helpful, thank you
@rmurphy0001
@rmurphy0001 7 лет назад
This is awesome!!!
@thomaskennedy5336
@thomaskennedy5336 6 лет назад
So do we need spyder? because I'm using 3.6 and some of this doesn't seem to translate.
@cggsdtdtyfyyu9563
@cggsdtdtyfyyu9563 7 лет назад
شكرا اوي
@akbarrauf2741
@akbarrauf2741 7 лет назад
thank you ,mit
@muthabukujohn5089
@muthabukujohn5089 5 лет назад
take = "Thank you" name = "Dr. Ana Bell" print (take + ", " + name)
@peterpace3379
@peterpace3379 4 года назад
(take, name)*
@geitekop507
@geitekop507 4 года назад
print(take,","name,"!") is probably slightly better. ;-)
@blackjack-ks8zn
@blackjack-ks8zn 4 года назад
@@geitekop507 (take, " ", name, "!")
@kasiviswanathboddeti9085
@kasiviswanathboddeti9085 3 года назад
print(take+",",name)
@techgamer1333
@techgamer1333 3 года назад
Ana Bell ❤❤
@abdullahchowdhury9589
@abdullahchowdhury9589 3 года назад
I want to ask a question not related to syllabus but a great tips Dr. Ana Bell used in this lecture, Lecture No 2(Branching and Iteration) and I have question in Time:39.48/43.30.... Here Dr. Ana used a great tips: She just select some sort of lines and deleted the "#" sign in a single moment.... I want to know how can I do it the same thing on Spyder.... Please comment to me... If you know please give me suggestion... Please Please.... (From INDIA)
@ChandravijayAgrawal
@ChandravijayAgrawal 2 года назад
She is second(I'm confused) best professor i ever got on MIT
@kattetivikram1862
@kattetivikram1862 5 лет назад
Amazing clasess
@juliannevillecorrea
@juliannevillecorrea 5 лет назад
thank you !
@BC-lg1dg
@BC-lg1dg 4 года назад
Присоединяюсь. к отзыву "walawave ", за субтитры. Thank you very much
@thankyou_guruji
@thankyou_guruji 2 года назад
SHE IS SUCH A GOOD TEACHER
@barlov_filange
@barlov_filange 7 месяцев назад
The idea behind ocw is profound. By distributing knowledge to the whole world for free, MIT is paying tribute to the geniuses like faraday, curie, ramanujan etc... Who produced phenomenal works despite of not having the proper access to the knowledge they needed.
@jikachu926
@jikachu926 3 года назад
her legend of zelda example was a really excellent example to use and keep students engaged
@snuffy5321
@snuffy5321 Год назад
Dr Bell is a legend
@examango
@examango 4 года назад
谢谢
@klick4x
@klick4x 5 лет назад
thank you mit
@saimahossain332
@saimahossain332 3 года назад
i have a question, how do you remove the first hashtags in a column with a shortcut?
@obli8984
@obli8984 2 года назад
OBLI WATCHED THIS FROM SRI LANKA.TO BE HONEST NONE OF UNIVERSITIES OF SRI LANKA PROVIDE GOOD LECTURES LIKE THESE
@rupertbrunder7888
@rupertbrunder7888 6 лет назад
Very nice information
@harshitarawat1411
@harshitarawat1411 3 года назад
Transition from if-else to while loop tells how much i took the loops for granted .
@imrk97
@imrk97 5 лет назад
what was the version of python in these courses?
@shohidulpramanik3506
@shohidulpramanik3506 4 года назад
Using which programming language can make CAD software?
@Clyffcarlock1
@Clyffcarlock1 3 года назад
Why isn't "Type a number..." included in the output, as it is included within the quotation marks?
@jyvben1520
@jyvben1520 10 месяцев назад
to improve examples e.g. for string print( "you_can", "show", "where_the_spaces_are_added", "!" * 3 ) the example code blocks could have a colored background or have a colored border
@dgates6165
@dgates6165 2 года назад
I love this teacher!! She's so funny, but in the driest way possible!! It's great! 😅
@ianmark4543
@ianmark4543 5 лет назад
Could someone please explain what's the difference between the "+=" and "=+" operators?
@marco.nascimento
@marco.nascimento 5 лет назад
there is no such a sintax in python as "=+", only "+=". And "x += 1" is the same thing as "x = x + 1"
@obli8984
@obli8984 2 года назад
the number you mention in parenthesis in for loop doesn't printed on the screen
@XMegaJuni
@XMegaJuni 6 лет назад
Brilliant
@flickmew99
@flickmew99 2 года назад
I want to learn a lessong everyday if she is my teacher. I will never get tired or bored
@trenholmelodge1820
@trenholmelodge1820 2 года назад
It would help that when Ana points to the board and makes a comment, the camera also shows the board and not the picture of Ana talking. thanks for the free lectures
@chaimaak9949
@chaimaak9949 4 года назад
Whene I've tried , the input part of the lecture ,,, The following message just showed up ( get ipython ().kernel.shell.run_line_magic('clear', ") Can anyone please help me !!!!! Otherwise, the lectures are perfect and Very well explained.
@louerleseigneur4532
@louerleseigneur4532 3 года назад
thanks MIT
@HadeelHanaysheh
@HadeelHanaysheh 7 лет назад
on the 40th minute why i has the values 5 7 9 not 5 6 7 8 9 ????? please explain !!!
@ryankung3244
@ryankung3244 7 лет назад
for range function, the parameters include start, end and steps. steps has default value of 1, therefore without explicitly specifying for the range function, you would get an iterator that output a sequence of values from 5,6,7,8,9,10 if it was range(5,11). However, since step was specified to be 2, each time the iterator will yield and output a new value equal to previous value + 2, which range(5, 11, 2) give you 5, 7, 9. Also since 11 will be greater and equal to 11, so 11 won't be part of the result for the range function.
@andrewjankowski6981
@andrewjankowski6981 Год назад
I can't get enough my brain is finally feeling euphoric
@yuminkim7264
@yuminkim7264 6 лет назад
Whenever she shows the python codes on her PC's spyder, how she change from comment to code(vice versa) so quickly by dragging? is there any short cut for that functionality?
@Viruz256
@Viruz256 6 лет назад
If you press ctrl+1 in Spyder, all marked code changes to/from comment
@CrushOfSiel
@CrushOfSiel 4 года назад
@@Viruz256 Thank you! I was looking for this comment/answer!
@rithuvarnakm3575
@rithuvarnakm3575 2 года назад
I am not getting that one at 12:26 I am doing this in Google colab, Is that the problem
@christianhamilton3927
@christianhamilton3927 2 года назад
Who knew Darlene would be such a good professor
@ruchitbhaktan2028
@ruchitbhaktan2028 7 лет назад
can somebody please tell from where to get Spyder python that Dr.Ana Bella Used
@AndyYiduo
@AndyYiduo 7 лет назад
www.continuum.io/downloads, the platform is called Anaconda.
@fernandocortes1187
@fernandocortes1187 3 года назад
9:40 get input from user...every thing id a string, evento the numbers
3 года назад
19:40 three ways to make decitions
@fernandocortes1187
@fernandocortes1187 3 года назад
5:00 the estar operator with strings
@user-xj2mr7ly1d
@user-xj2mr7ly1d 4 года назад
for the maze game, " n=input("you are in a deep forest. **************** **************** Go left or right?")"under the while loop doesn't need any print command and it just repeats itself?
@silviapabon1282
@silviapabon1282 3 года назад
Anaconda allows intereacitivty: IPython + Spyder (inspire on Matlab, (Matplotlib),+ support for other languages like ruby, R, Julia, Haskell ....etc. wow I am going to explore that tomorrow...
@algemmegla9002
@algemmegla9002 3 года назад
Regarding range(stop,start,step) 40:30: Normally num-1, but in this case, we're going to the end minus "two". (num - 2). I came across a component of this topic on stackoverflow, where someone described the end of the range as "minus two", which left me puzzled, so I thought I'd post.
@mvisperas
@mvisperas 3 года назад
Python always has the extra +1 whenever there is a range. This is different if you come from other programming languages but once you get used to it it will not bother you. Also true when slicing a string. For example: # 1 1 1 # 0 1 2 3 4 5 6 7 8 9 0 1 2 a = "hello, world!" # h e l l o , w o r l d ! b= a[1:8] print(b) # output # ello, w
@algemmegla9002
@algemmegla9002 3 года назад
@@mvisperas In the case of range(5,11,2) From five up to but not including 11. It went 5...7...9 It stops at 9, and She says "...So we're going to the end MINUS ONE...." But actually it's going to the end, MINUS TWO. But I still agree with your comment. Normally, if it were range (5,11), with one hop as the default, it would be getting to the end (11) minus one. It was just a small thing, but thought I'd mention it. Yes, I see how you're thinking.
@algemmegla9002
@algemmegla9002 3 года назад
Another example: Two hops. It goes to the end "minus two". for num in range(6,26,2): print(num, "", end="") 6 8 10 12 14 16 18 20 22 24 I also tried to index a range, but you have to change it to a list first because range is immutable. Range 20 up to, but not including, 50. Two hops. So up to the end "minus two". range_2 = list(range(20,50)) print(range_2[0:30:2],"", end="" ) [20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48]
@mvisperas
@mvisperas 3 года назад
@@algemmegla9002 The end value is always the highest value without being equal to or exceeding the stop value - you can treat it as always less than. This statement is true whether the step value is 1, or 2, or 3, or whatever step value you choose. Thus if you do range(5, 11, 3) then the count is 5 ... 8. It won't do 11 as it is equal to the stop value.
@algemmegla9002
@algemmegla9002 3 года назад
@@mvisperas I understand. Whatever is equal to the stop value gets ignored. I think we're both saying the same thing, but we're just wording our examples differently. As you mentioned in your example, you could say it stops at 11 because it is equal to the stop value, "and" you could also say it goes up to the end "minus two" (or 8) We're both saying the same thing. It's just different ways of explaining the concept.
@scullyy
@scullyy Год назад
"b" is greater than "a" because __lt__ / __gt__ methods of the string class were made to convert the characters to ascii values and return the comparison of those values?
3 года назад
28:10 While loop insted of if statement
@VeteranIRL
@VeteranIRL 4 года назад
did any one made expanding for the code of the game that puts sad face and many tables after entering right more than two times?
@semtex6412
@semtex6412 3 года назад
𝚗 = 𝚒𝚗𝚙𝚞𝚝("𝚈𝚘𝚞 𝚊𝚛𝚎 𝚒𝚗 𝚝𝚑𝚎 𝙻𝚘𝚜𝚝 𝙵𝚘𝚛𝚎𝚜𝚝, 𝙶𝚘 𝚕𝚎𝚏𝚝 𝚘𝚛 𝚛𝚒𝚐𝚑𝚝?") 𝚠𝚑𝚒𝚕𝚎 𝚗 == "𝚛𝚒𝚐𝚑𝚝" 𝚘𝚛 𝚗 == "𝚁𝚒𝚐𝚑𝚝": 𝚛𝚒𝚐𝚑𝚝𝚜 = 𝟶 𝚏𝚘𝚛 𝚒 𝚒𝚗 𝚛𝚊𝚗𝚐𝚎 (𝟷): 𝚛𝚒𝚐𝚑𝚝𝚜 += 𝚒 𝚗 = 𝚒𝚗𝚙𝚞𝚝("𝚜𝚊𝚍𝚏𝚊𝚌𝚎, 𝚕𝚎𝚏𝚝 𝚘𝚛 𝚛𝚒𝚐𝚑𝚝?") 𝚗 = 𝚒𝚗𝚙𝚞𝚝('𝚏𝚕𝚒𝚙𝚜 𝚝𝚊𝚋𝚕𝚎𝚜, 𝚕𝚎𝚏𝚝 𝚘𝚛 𝚛𝚒𝚐𝚑𝚝?') 𝚠𝚑𝚒𝚕𝚎 𝚗 == "𝚛𝚒𝚐𝚑𝚝" 𝚘𝚛 𝚗 == "𝚁𝚒𝚐𝚑𝚝": 𝚗 = 𝚒𝚗𝚙𝚞𝚝('𝚏𝚕𝚒𝚙𝚜 𝚝𝚊𝚋𝚕𝚎𝚜, 𝚕𝚎𝚏𝚝 𝚘𝚛 𝚛𝚒𝚐𝚑𝚝?') 𝚙𝚛𝚒𝚗𝚝("\𝚗𝚈𝚘𝚞 𝚐𝚘𝚝 𝚘𝚞𝚝 𝚘𝚏 𝚝𝚑𝚎 𝙻𝚘𝚜𝚝 𝙵𝚘𝚛𝚎𝚜𝚝!\𝚗\𝚘/")
@ashimo5214
@ashimo5214 Год назад
38:54 both codes ARE WORNG SHOULD BE for i in range(5, 11, 2 ): print(i) NOT LIKE : x = 0 for i in range(5, 11, 2 ): x += i print(x) I get output : 21 with that code for some reasons
@TheAL9090
@TheAL9090 Год назад
32:21.... y no n += 1?? also loving the Corse so far, did problem sets 0 and 1a before watching this, would love to go to MIT at some point in my life to get a Comp sci degree
@maar2001
@maar2001 Год назад
Bro where can I get the problem sets and where can I install the notes prof Ana made that she shows here?
@saumyasahu1426
@saumyasahu1426 3 года назад
How can I get the files and slides that she asks the class to download
@vibrancydevelopers.9420
@vibrancydevelopers.9420 3 года назад
click this link ocw.mit.edu/6-0001F16
@002_abhinavsingh3
@002_abhinavsingh3 3 года назад
Thanks
@adrikasaha7690
@adrikasaha7690 Год назад
do we have to use spyder ?
@ahmedsalam9251
@ahmedsalam9251 6 лет назад
How can i delete # on each line for one time?
@santos8146
@santos8146 6 лет назад
just select all lines and ctrl+1
@timarivobatis1182
@timarivobatis1182 6 лет назад
how do you remove the # from multiple lines in spyder? whats the hotkey. theres probably also a hotkey to a add it. so comment/ uncomment selected lines. like at 39:48
@rizwanzeb5218
@rizwanzeb5218 6 лет назад
highlight the text and press ctrl+1
@abdullahchowdhury9589
@abdullahchowdhury9589 3 года назад
@@rizwanzeb5218 Thank you very much... so happy to get my solution
@ShubhamRaj-mu8ol
@ShubhamRaj-mu8ol 4 года назад
Can someone tell me how she deleted and adds character to each line at once. Can it be done on windows?
@abdullahchowdhury9589
@abdullahchowdhury9589 3 года назад
I asked same question.... Even I don't know how she can able to do it... By looking at her screen view I think she uses Windows Machine... Please brother if you get your answer please reply to me also....
@diggitycat6233
@diggitycat6233 3 года назад
If you're using an IDE like Spyder, here's the shortcut key to it, Single line comment Ctrl + 1 Multi-line comment select the lines to be commented Ctrl + 4 Unblock Multi-line comment Ctrl + 5 P.S: Got this from Stack Overflow so due credit to the actual authors for this query.
@ShubhamRaj-mu8ol
@ShubhamRaj-mu8ol 3 года назад
@@diggitycat6233 A lot of thanks to you sir😄
@nandhavardhanchowdarynambo333
@nandhavardhanchowdarynambo333 4 года назад
When comparing string how will it compare a and 1
@eyob_g
@eyob_g 3 года назад
Google about lexicographical order
@acavaelnick
@acavaelnick 4 года назад
Hi people, anybody could give me a hand ? I'm trying to do the fingers exercises in the textbook for this course, and in chapter 3 there is one that says: 'Write a program that takes an integer enter by the user and prints two integers, root and pwr, such that 0 < pwr < 6 and root**pwr equals the integer entered by the user. If no such pair of integers exists, print a message saying so.' I'm really strugglin with the logic there and would gladly accept some help. Thank you
Далее
Strings
0:53
Просмотров 94 тыс.
6. Recursion and Dictionaries
48:22
Просмотров 369 тыс.
10 кактусов поют трек Богатырь
00:14
All 39 Python Keywords Explained
34:08
Просмотров 100 тыс.
Lecture 1: Introduction to CS and Programming Using Python
1:03:30
7. Testing, Debugging, Exceptions, and Assertions
41:33
8. Object Oriented Programming
41:44
Просмотров 607 тыс.
Beginner's Guide to the Bash Terminal
1:14:37
Просмотров 2,3 млн