Chapter 1: Programming in Python
● Gain an overview of what you’ll be learning and doing in the course
● Understand programming and why you should learn programming in Python
Chapter 2: Data types and Operator
● Learn about Python data types
○ Integers
○ String
○ Boolean
○ Float
○ List
○ Tuple
○ Sets
○ Dictionaries
○ Compound data structures
○ Type casting
● Learn about variable
● Input/Output
● Learn about:
○ Arithmetic operator
○ Logical operator
○ Comparison operator
○ Logical operator
○ Membership
○ Identity
● Practice
○ Declare, assign and reassign value to a variable
○ Modify values using built in functions and methods
○ Practice whitespace and style guidelines
○ Write a function that accepts an integer n and a string s as parameters, and
returns a string of s repeated exactly n times.
Example
3, “Hello” —->>>> “HelloHelloHello”
○ Given a random non-negative number, you have to return the digits of this
number within an array in reverse order.
Example:
35231 => [1,3,2,5,3]
○ Write a function to convert a name into initials. This problem strictly takes two
words with one space in between them.
, Example:
Sam Harris => S.H
○ Your goal is to create a function that removes the first and last characters of a
string. You're given one parameter, the original string. You don't have to worry
with strings with less than two characters.
Eloquent —->>> loquen
○ You will be given an array a and a value x. All you need to do is check
whether the provided array contains the value. Return true if contains value
otherwise false.
○ We need a function that can transform a number (integer) into a string.
Example 100 ⇒ “100”, -100 ⇒ “-100”
○ Complete the solution so that it returns true if the first argument(string)
passed in ends with the 2nd argument (also a string).
Chapter 3: Control flow
● Learn about why conditions are needed? What is meant by control flow?
● Learn about
○ If
■ If else
■ If elif else
○ Ternary Operator
● Learn about loop:
○ For
○ While
○ continue
○ break
○ List comprehension
Chapter 3: Functions
● What are functions in Python?
● Function arguments
● Variable scope
● Document a function using Doc strings
● Learn about iterator and generator
● Python pass statement
● Practice
○ Create a method to add, subtract, multiply, and divide. Take both number and
operator as an input from the user. Method will return the answer.
○ Create a function that takes an integer as an argument and returns "Even" for
even numbers or "Odd" for odd numbers.
○ You probably know the "like" system from Facebook and other pages. People
can "like" blog posts, pictures or other items. We want to create the text that
should be displayed next to such an item. Implement the function which takes
an array containing the names of people that like an item. It must return the