# Name: # checkoff3_loops.py #################################################### ### 1. Decimal Equivalents of Fractions ### #################################################### # print decimal equivalents of 1/2, ... , 1/10 print "1. Decimal Equivalents of Fractions\n" print "Using a while loop: \n" # YOUR CODE HERE print "\nUsing a for loop: \n" # YOUR CODE HERE print "\n***********************************************\n" #################### ### 2. Countdown ### #################### # Get a user input and print a countdown from that number print "2. Countdown\n" #YOUR CODE HERE print "\n***********************************************\n" ######################### ### 3. Divisible by 2 ### ######################### # Ask user to enter a number that is divisible by 2 # Continue asking until they succeed print "3. Divisible by 2\n" # YOUR CODE HERE print "\n***********************************************\n" ############################# ### 4. Loops with strings ### ############################# # get a user-inputted string # print the number of vowels in the string # print the string without the vowels # print a list of the unique consonants print "4. Loops with strings\n" # YOUR CODE HERE print "\n***********************************************\n" ######################## ### 5. Summing lists ### ######################## # print the sum of a list of numbers # print a list where element i is the sum of the first i+1 elements print "6. Summing lists\n" l = [4, 3, 6] # YOUR CODE HERE print "\n***********************************************\n"