Lecture Unit 3
Lecture Unit 3
§ script mode.
§ In immediate mode, you type Python expressions into the
Python Interpreter window, and the interpreter immediately
shows the result:
§ division by zero
§ Create a main.py:
§ Constant and variable names should have a combination of
letters in lowercase (a to z) or uppercase (A to Z) or digits (0 to
9) or an underscore (_).
§ Create a name that makes sense (meaningful of the data they
hold)
§ If you want to create a variable name having two words, use
underscore to separate them.
§ Use capital letters possible to declare a constant.
§ Never use special symbols like !, @, #, $, %, etc.
§ Don't start a variable name with a digit.
§ Every value in Python has a datatype.
§ A data type is simply a form or format in which data
exists
§ This program run until the point were it would not work. It
would give the following as output and error notification:
§ In Explicit Type Conversion, users convert the data type of an
object to required data type.
§ In the text editor window, to test your program you click the
run command.
Questions????
Perlongs Computing
52