Homework 6: Problems - Python modules, loops, and I/O

This homework aims at giving you some experience with Python for-loops and while-loops as well as reading user input from the Bash command line. 1.  The while-loop implementation of a for-loop. Consider the following example code, which converts a list...

Exam 1: Solutions

This is the solution to Exam 1: Problems. The following figure illustrates the grade distribution for the midterm exam. Maximum possible points is 100. This is the first (and last) midterm exam of this course, covering lectures 1-6. Please submit...

Exam 1: Problems

This is the first (and last) midterm exam of this course, covering lectures 1-6. Please submit your answers to each of the following questions in a single readme.md file, in ECL2017S/exams/1/ directory in your private repository for this course. Don’t...

Quiz 5: Solutions - Python variables and assignment statements

This is the solution to Quiz 5: Problems - Python variables and assignment statements. The following figure illustrates the grade distribution for this quiz. Maximum possible points is 100. This quiz aims at testing your basic knowledge of Python’s print...

Quiz 5: Problems - Python variables and assignment statements

This quiz aims at testing your basic knowledge of Python’s print function, and the how to string manipulation in Python. Don’t forget to push your answers to your remote repository by the end of quiz time. Push your quiz-5 readme.md...

Lecture 6: Python - branching and functions

This lecture explains branching statements, how to define functions in Python, and all other important details of functions in Python. Branching in Python Consider the last problem in homework 4, where we defined a dictionary of people names and their...

Homework 5: Solutions - Python branching and functions

This is the solution to Homework 5: Problems - Python branching and functions. The following figure illustrates the grade distribution for this homework. Maximum possible points is 100. This homework aims at giving you some experience with variables in Python...

Homework 5: Problems - Python branching and functions

This homework aims at giving you some experience with variables in Python and their syntax, also some experience with using Lists and Dictionaries in Python. Write your Python scripts with the corresponding *.py file names, and add a readme.md file...

Quiz 4: Solutions - Python values, variables, types

This is the solution to Quiz 4: Problems - Python values, variables, types. The following figure illustrates the grade distribution for this quiz. Maximum possible points is 100. This quiz aims at testing your basic knowledge of Python’s print function,...

Quiz 4: Problems - Python values, variables, types

This quiz aims at testing your basic knowledge of Python’s print function, and the how to string manipulation in Python. Don’t forget to push your answers to your remote repository by the end of quiz time. Push your quiz-4 readme.md...

Lecture 5: Python - variables and assignment statements

This lecture further explains different types of variables in Python, branching statements, how to define functions, and what Python modules are. Programming glossary The following table summarizes some of the important keywords in this lecture for you. Table 1. Some...

Homework 4: Solutions - Python variables and assignment statements

This is the solution to Homework 4: Problems - Python variables and assignment statements. The following figure illustrates the grade distribution for this homework. Maximum possible points is 100. This homework aims at giving you some experience with variables in...

Homework 4: Problems - Python variables and assignment statements

This homework aims at giving you some experience with variables in Python and their syntax, also some experience with using Lists and Dictionaries in Python. Write your Python scripts with the corresponding *.py file names, and add a readme.md file...

Homework 3: Solutions - Python debugging and string manipulation

This is the solution to Homework 3: Problems - Python debugging and string manipulation. The following figure illustrates the grade distribution for this homework. Maximum possible points is 100. This homework aims at giving you some experience with String manipulation...

Lecture 4: Python - values, variables, and types

This lecture aims at guiding you to understand the how to of programming, difference between programming languages and the natural languages, the type of programming errors and the meaning code debugging how to perform simple arithmetic operations on the Python...

Homework 3: Problems - Python debugging and string manipulation

This homework aims at giving you some experience with String manipulation in Python and debugging a simple Python script. String manipulation is one of the greatest strengths and reasons for popularity of Python. For both questions below, submit your Python...

Quiz 3: Solutions - Advanced Git

This is the solution to Quiz 3: Problems - Advanced Git. The following figure illustrates the grade distribution for this quiz. Maximum possible points is 100. This quiz aims at testing your knowledge of advanced Git commands, such as branching....

Quiz 3: Problems - Advanced Git

This quiz aims at testing your knowledge of advanced Git commands, such as branching. Don’t forget to push your answers to your remote repository by the end of quiz time. Push your quiz-3 readme.md file to quiz/3/ folder in your...

Lecture 3: Python for beginners

This lecture aims at providing an introduction to Python programming for beginners, how to install it, different Python distributoins available, how to write Jupyter notebooks, and how to perform simple arithmetic operations with Python. Python: a brief history Python was...

Homework 2: Solutions - Advanced Git

This is the solution to Homework 3: Problems - Python debugging and string manipulation. The following figure illustrates the grade distribution for this homework. Maximum possible points, excluding bonus question, is 100. Maximum possible points, including bonus question, is 120....