×

### Let's log you in.

or

Don't have a StudySoup account? Create one here!

×

or

by: Eunice

18

0

1

# Week 5 Notes CS 1110-002

Eunice
Cornell

Get a free preview of these Notes, just enter your email below.

×
Unlock Preview

Iterations, For Loops, Modules
COURSE
Intro to Computing using Python
PROF.
Lee, Van Loan
TYPE
Class Notes
PAGES
1
WORDS
CONCEPTS
Python, CS
KARMA
25 ?

## Popular in ComputerScienence

This 1 page Class Notes was uploaded by Eunice on Saturday February 27, 2016. The Class Notes belongs to CS 1110-002 at Cornell University taught by Lee, Van Loan in Spring 2016. Since its upload, it has received 18 views. For similar materials see Intro to Computing using Python in ComputerScienence at Cornell University.

×

## Reviews for Week 5 Notes

×

×

### What is Karma?

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 02/27/16
CS 1110 Van Loan and Lee Spring 2016 February 23, 2016  Counting, find, replace o count and find: returns int values o replace  overlap of strings  the produce is a string that is different from the original  original remains unchanged  overwrite: s=replace(s1,s2)  methods: upper or lowercase  also: o s.isalnum: all numbers or alphabet o s.isalpha: all alphabetical o s.isdigit:all numbers o string module  characters, letters, punctuation, numbers o iteration  repeating a script using loops  for: for a certain object in another object, do a certain execution  for x in y: o LOOP BODY o February 25, 2016  iterating through a string vs is a range o letters/characters/string: “for c in s”: do thing in loop body o number/quantities: “for k in range(n)”: do thing in loop body  counting: a type of summation o “for k in range():  print k” o “for k in range (1,n):  print k” o “for k in range(there, here, -1):  print k”  this counts backwards

×

×

### BOOM! Enjoy Your Free Notes!

×

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

Bentley McCaw University of Florida

#### "I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Janice Dongeun University of Washington

#### "I used the money I made selling my notes & study guides to pay for spring break in Olympia, Washington...which was Sweet!"

Steve Martinelli UC Los Angeles

Forbes

#### "Their 'Elite Notetakers' are making over \$1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com