New User Special Price Expires in

Let's log you in.

Sign in with Facebook


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


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Intro to Networks and Their Applications

by: Tamia Bernhard

Intro to Networks and Their Applications 22C 118

Marketplace > University of Iowa > ComputerScienence > 22C 118 > Intro to Networks and Their Applications
Tamia Bernhard
GPA 3.87


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

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

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 11 page Class Notes was uploaded by Tamia Bernhard on Friday October 23, 2015. The Class Notes belongs to 22C 118 at University of Iowa taught by Staff in Fall. Since its upload, it has received 25 views. For similar materials see /class/228057/22c-118-university-of-iowa in ComputerScienence at University of Iowa.


Reviews for Intro to Networks and Their Applications


Report this Material


What is Karma?


Karma is the currency of StudySoup.

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

Date Created: 10/23/15
Introduction to Python 3 Introduction to Networks and their Applications 220118 Fall 2005 Alessio Signorini ltalessiosignoriniuiowaedugt Class Objects Create a new class in Python is simple Just write class MyCIass class1 class2 This is what this class does nothing for now do something Special methods of each class are initself delself getattributeself name doc Example of a Class Objects class Book def initsef title authorquotUnknownquot keywords quot Books take three arguments to their constructor selftitle title selfauthor author selfkeywords keywords def setTitleself title selftitle title def setKeywordsself keywords selfkeywords keywords def strself return selftitle selfauthor selfkeywords Importing modules A huge number of Python modules are available Look on the web to discover them An important builtin modules is sys It supports important attributes as argv at at ot the oommandine arguments maxint a return the largest integer available platform it string with the name of the platform version a return the python version stdin stdout s predetinite tile object for inputoutput stderr it predetinite tile object for error output Importing modules Modules are imported at the beginning of a program with from sys import argv or from sys import To use an imported attributes just write something like print sysargvO or for argument in sysargv print argument Time functions If in your programs you need to work with the time import the module time and then use the following functions time asctime looaltime strftime sleepx J J PM 97mm W 39 of r 39 39wzmm L float ill l time Ettore ill 44L 3 woti 52 5mg 23 r 1 731 mgr 3 gzgnfg A firmquot lava Earn Wm ya relunl suit lllfltll the ensure ll nine letur ll a uylle illfilth tr 7 a L f p g tmra l margin at W r Wf w Him 5 lretlUlll39l llfllllla ailing tnfltll Mllllf llm tlrl tta trim r939 sa a im ed n w r W q quotini 2 Qty LL35 slyly 23 For a more sophisticated time management you should consider to use the module MxDateTime Regular Expressions Regular expressions are powerful tools that allows to scan trough strings identifying interesting parts or replacing characters ln Python regular expressions are supported thanks to the module re add import re at the beginning of your code To use the module you have to create a regular expression object with your settings for the search reo recompiler39w39 Regular Expressions Useful patterns for regular expression are w W matches one alphanumeric character d D matches one digit s S matches one whitespace A empty string at the start of the string b B empty string at start or end of a word Z empty string at the end of the string matches any character except n Regular Expressions Once identified the pattern you need quantify it A matches start of string or at the end of a string matches zero or more cases as many as poss matches one or more cases as many as poss matches zero or one cases matches one if p as but matches as few as pos also or matches m to n cases of the previous reg Expr matches any one of the characters in the set matches the reg expr preceding or following it Regular Expressions Examples r39aabb39 matches aabb as aaabb or aacbbc r39aabb39 matches aa23bb or aacbb but not aabb r39bhisb39 matches his but not this or history r39bherw39 matches her or herbal but not mother r39d39 matches 123 and aa23bb r39bd66b39 matches only numbers of six digits r39dd39 matches two following digits as in or 123 r39ddwww39 matches 2 digits followed by 3 chars 12jan Regular Expressions Examples import re r1 recompiler39box39 if r1match inbox print Match succeded else print Match failed it prints rnatell tailed if r1search inbox print Search succeded prints searen sueeeded else print Search failed


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

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

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Anthony Lee UC Santa Barbara

"I bought an awesome study guide, which helped me get an A in my Math 34B class this quarter!"

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund 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


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:

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

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.