NCSS Challenge Introduction to
Programming using Python
Python words Programming Concepts
;
Semi-colon is added to the end of each line of
code
Syntax
rules of programming language
Print
e.g.
print Hello, Python!;
print counter; (prints the value of the
variable called counter)
Interpreter
#
Allows the programmer to add a comment in the
code
Variable
holds a value while the program is
running
variable may be:
string (has characters)
integar
decimal
input Strings
+ (concatenation)
len counts all of the characters in a string
e.g.
Integers
Purple = Python words
Green = string
Types of errors:
SyntaxError
NameError
ValueError