Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

CMN 152V CORE MAIN QUESTIONS AND ANSWERS SURE A.pdf

Document preview thumbnail
Preview 1 out of 3 pages

CMN 152V CORE MAIN QUESTIONS AND ANSWERS SURE A.pdf

Content preview

CMN 152V CORE MAIN QUESTIONS AND
ANSWERS SURE A+
✔✔how do you find string length - ✔✔len ( )
to print do print ( len ( ) )

✔✔what do you do if a string has quotes in it - ✔✔do ''' '''

✔✔looking In things - ✔✔in

✔✔print ( 'H' in 'Hello') - ✔✔true

✔✔format() uses the same funny dot (.) notation. If you have a string with a pair of curly
brackets ({}) and call format, format will replace the curly brackets with whatever is in
the parentheses. The Google-able jargon for this is really bad: "string interpolation" -
✔✔so it would say whatever variiable is in it

ex: name = 'deb'
print( 'Hello {}' .format(name) )

✔✔print( 'Hello' + ' ' + 'World' )
print( 'comma ' * 3 + 'chameleon') - ✔✔Hello World
comma comma comma chameleon

✔✔how to you test if something is equal - ✔✔==

✔✔how do you test if something is unequal - ✔✔!=

✔✔how do you make an ordered kind of collection - ✔✔a list with 2 brackets [ ]

✔✔how to retrive something from a list - ✔✔print ( highways[1])

Document information

Uploaded on
August 8, 2026
Number of pages
3
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$19.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
1
Followers
2
Items
4816
Last sold
2 weeks ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions