Practice 1
Practice 1. What does this code do? message = input("Please enter text: ") for i in range(0, len (message), 1): print i , ":", message[ i ]. Practice 2. Write a code to calculate 1+2+3+….+n (where n is a number that the user inputs). Solution.
143 views • 3 slides