CSC 498 Lecture Notes - Lecture 1: Empty String, Bytecode, Negative Number

21 views11 pages

Document Summary

Write and run a python program: write python source code (hello. py, bytecode running "inside" python interpreter (non-human readable) Spyder ide: write lines of code in editor window. Interact with python interpreter in console window: variables listed in corner to help you keep track of, console window to do a quick line & execute, editor window to write a program. Python 3 vs 2: 2 is a legacy version; been around longer, has more libraries, 3 is the future, with newer packages & libraries. If you know 3 you can use 2: minimal syntax differences. Python: easy language, no brackets, no semi-colons, uses spacing/indentation, no data types, tons of useful libraries with pre-written stuff to use, python programs run line-by-line. Like a "best-of" language that takes good parts of other languages. "" or "" for empty string, has length 0 string is a data type in python type(obj): returns type of the object, if a string it returns str.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents