Stanford Python Camp D – 4

D-4: Using loop commands with Python operators Assignment 4 – A. Simple Squares Write a program to print squares and square roots of all numbers from 1 to 81 using the “while loop.” On each line print a number, its square, and its square root. Sample output: x=1, square=1, sqrt=1x = 2, square = 3, sqrt […]
Stanford Python Camp D – 3

D-3: Using “if-elif-else” statements and printing consequential outcomes Assignment 3 – A. Grade Calculator Write a grading program for a class with the following grading policies: There are 2 quizzes, each graded on the basis of 10 points. There are 3 assignments, each graded on the basis of 10 points. There is one midterm exam, […]