Algorithm and Problem Solving
Algorithm and Problem Solving
Algorithm and Problem Solving
• Based on the concept of Doug Mashey from Silicon Graphics in the mid-90s
Variables & Identifiers
• Keyword Identifiers
• Python also has some other predefined identifiers that can be used as variable name
identifiers but should not be!!
• print
• exit
• quit
• float
• int
- Negation (unary -3 -3
operator)
* Multiplication 7*5 35
/ Division 5/3 1
% Modulus 34 % 2 0
// Truncated Division 6//4.0 1.0
** Exponentiation 2**3 8
• E.g., if the program will take as input 1 EUR will give as output 100 EURCENTs
• E.g., if the program will take as input 5 EUR will give as output 500 EURCENTs
Summary
• Algorithm
• Algorithms & Problem Solving
• Big Data
• Variables & Identifiers
• Operators
• Input & Raw Input
• Practice