Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Midterm Exam 2 Review Spring 2006: What this do?


yes
yesyes
yesyesyes
yesyesyesyes
yesyesyesyesyes
yesyesyesyesyesyes
yesyesyesyesyesyesyes
yesyesyesyesyesyes
yesyesyesyesyes
yesyesyesyes
yesyesyes
yesyes
yes

but why don't the spaces show up?
Think about how string concatination works. -poof #10


so if i choose let's say friedOkra = 6 does the "for i in range(1, friedOkra+1 )" this mean that the range is from 1 to 7 or something else?
That means the range is from 1 to 7 if friedOkra is 6 -Albert d'Heurle

I can't figure out why the space does not show up either. If you give JES a=" " and b="hello" and print b+a+b it will give you "hello hello", why doesn't this program do the same?

what does keke= ' ' do? 


keke = ' ' means that keke is there and exists, though at that point it doesn't mean anything yet?

its different when you print a+b then b+a its not communitive or whatnot

there must be some quirk with python because if keke = 'k' you get kdog,kdogdog and so on, but it gets rid of the space in the beginning when keke=' '

there is on space, it just defines keke before its used

there is not a space between the apostrophes used for keke. Amanda Bennett

so why is it there?

there isn't one there. when you put 2 apostrophes together, it might appear to be a space...but if you check...it really isn't. Do you notice the difference between
''
and
' '
? The reason that is there is to define keke to be a string. It's sort of like when you count the number of JPGs in your homework 4, you'll start with jpg=0. It's just initializing the variable so that you can add more to it later. Amanda Bennett



Link to this Page