CNT 4713 Lecture Notes - Lecture 2: Tuple, Network Congestion, Transmission Control Protocol

65 views7 pages
School
Course
Professor

Document Summary

Not the symbols have to spell the words. Variables must be initialised before can be used; they"re loosely typed (don"t have to say int, string) Python guess the type of the variable from the context. List : like an array, color = [ red","green" ] Tuple: list but can"t be changed : color = ( red","green" ) Dictionnary: store name: value pairs, colors= { fore":"red", back":"green" } A block of code is indicated by indentation. Use a def keyword to define a method. A test can be 0<= x <= 100. The import command indicate that imported module is part of the current program. It has effect of combining the imported module with the current file. The name of the module must beussed to reference the method. From command makes the module available but only the named methods are available. The name of the module does not have to be used to reference the method.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents