Discussion+1_+HW1,+Git.pdf

Yuwnornwsy

Info icon This preview shows pages 29–35. Sign up to view the full content.

YUWNORNWSY KLOKNORNWXYDEHDWSFGJFVRJKNJ RUQXTWSLMPLJKNJXYDEHDWSFGJFVRJKNJ #$"%# ‘’ KLOKXTW XYZIJMIJKNJWSY NORNWS XYZIJMIJKNJWSYX !" NORNKLOK RUQJKNJWS°XYZIJMIJKNJWSY´ %#&$$ RUQJKNJWS°RUQXTWSLMPLJKNJXYDEHDWSFGJFVRJKNJ´ !" RUQXTWSLMPLJKNJXYDEHDWSFGJFVRJKNJ #$"%# XYZIJMIJKNJWSY YUWNORNWSY RUQXTWSLMPLJKNJXYDEHDWSFGJFVRJKNJ
Image of page 29

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Strings “hello” + “world” = “helloworld” #concatenation “hello”*3 = “hellohellohello” #repetition “hello”[0] = “h” # indexing “hello”[-1] = “o” # (from end) “hello”[1:4] = “ell” #slicing len(“hello”) = 5 # size “hello” < “jello” is True #comparison “e” in “hello” is True # search
Image of page 30
Lists Flexible arrays FGJF #$"%# @AD»»² “GHKGXTYYRUQJKNJX XTKLOK GHKGJKNJJKNJW”² @AD“XTWS”² “YMNQMJKNJ”² “\FGJFRUQRUQ”BCFBCF [email protected]³BCF FGJF¸FGJFYUYUJKNJWSIJMI°±³´ FGJF¸XXTWY°´ FGJF¸WJKNJ[JKNJWXJKNJ°´
Image of page 31

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Dictionaries '/+ZXXZXXVTJPNH[YYPN][[L '/+YWWYWWH`^^ZXX°62HZXXO >HISQLZXX ] #$"%# 332^^554GHKGOPSOJKNJHILHY°´ IJMI #$"%# ``“FGJF” !" ”KLOKXTXT”² ¼ !" ]² ] !" ``½ !" ”XYWNORNWSLMPL”bb [email protected]‘FGJF’BCF #$"%#%#&$$ “KLOKXTXT” [email protected]][email protected]½BCF #$"%#%#&$$ “XYWNORNWSLMPL” KLOKXTW QTP² [ NORNWS IJMI¸NORNYJKNJWNORNYJKNJVRX°´ !" YUWNORNWSY QTP²[ ΖUSKL_]]PNUSN ± KERPL`^^GD <LTRVT][[HSQ ± KLSQ KERPL`^^GD ΖUSZXXLYWW[YY°?WUUKH[YYL ± KERPL`^^GD (#+ ][[HSQ 7LTRILYWWZXXOPNWUU [YYLZXX[YYPNUSN ± RPL`^^ PNUS K² RP USVT[YY PNUS K K³JSQLHYWW´µ ΖUSKL_]] ^\\° KLMH\ZZSQ[YY ± K³NL[YY´RPL`^^² KLMH\ZZSQ[YY(#+8VTUSLµ 6PNZXX[YY VTM LSQ[YYZXX ± K³RPL`^^ZXX´µ² K³][[HSQ\ZZLZXX´µ² K³PN[YYLTRZXX´µ Ζ[YYLYWWH[YYPNVTUS% ( MVTYWW RPL`^^ PNUS K% ( Ȑ =PNa__ȐL% ( SQLUS´Kµ
Image of page 32
Reading Input from Arguments argv is the list of command line arguments Code: NORNVRYUXTWY X^^X YUWNORNWSY°X^^X¸FGJFWLMPL[´ <\ZZUSUSPNUSN% ( ¾ YU^^YMNQMXTWS YUWXTLMPLWFGJFVR¸YU^^ “MNQMJKNJRUQRUQXT” Result: @AD‘YUWXTLMPLWFGJFVR¸YU^^’² ‘MNQMJKNJRUQRUQXT’BCF
Image of page 33

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Additional References Learn Python in one video Python tutorial Documentation Git tutorial Stack Overflow is your best friend
Image of page 34
See you next week!
Image of page 35
This is the end of the preview. Sign up to access the rest of the document.
  • Winter '16
  • Matt Hicks
  • Ruby, Revision control, Piazza, git

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern