Python For Non-Programmers - 1-1
Python For Non-Programmers - 1-1
Installing Python
How do I
store data?
“John”
“Sam”
“Matt”
Variables in Python
Student
“John”
0x1098ab
Variables in Python
Arithmetic Operators
Keywords
Identifiers
Literals
Operators
Python Keywords
as elif If Or Yield
Python Identifiers
Rules
I’m a constant.
I don’t change
Python Strings
Strings are sequence of characters enclosed within single quotes(‘ ’), double
quotes(“ “) or triple quotes(‘’’ ‘’’)
‘’’ I am going to
‘Hello World’ “This is Sparta”
France tomorrow’’’
Extracting Individual Characters
String Functions
Finding length of string Converting String to lower case Converting String to upper case
String Functions
Replacing a substring
Splitting a String