Read Python
CSC 101 Introduc on to Computer Science Saint Martin’s University
Module 2 Programming Assignments
Submit the source code for your programs via Moodle. 1. Read Python Tutorial (h ps://docs.python.org/3/tutorial/index.html) sec ons 1 to 4.5.
2. Write a Python program that prints out a table of values of all even powers of 2 from 2**0 through
2**32. For each value, print the value in decimal, hexadecimal, and binary. Python provides library functions hex and bin for performing the conversions.
3. Write a Python program that prompts the user to enter an input between 0 and 10000, then counts
how many numbers between 0 and the entered number are divisible by 4 with no remainder. Print out a message containing the final count.
Optional – Once you’ve finished with the assignment, go to h p://www.w3resource.com/python- exercises/python-conditional-statements-and-loop-exercises.php and do as many exercises as you can. Add the solutions to the exercises that you personally solved and a brief description of the process to arrive to the solution. If you had to look into the solution before you come up with the answer, DO NOT add it to the list of exercises resolved. Submit the list of programs resolved in a word document and upload it to Moodle.