Path: blob/master/02-Python Statements/07-Statements Assessment Test.ipynb
666 views
Kernel: Python 3
Statements Assessment Test
Let's test your knowledge!
Use for
, .split(), and if
to create a Statement that will print out words that start with 's':
In [ ]:
In [ ]:
Use range() to print all the even numbers from 0 to 10.
In [ ]:
Use a List Comprehension to create a list of all numbers between 1 and 50 that are divisible by 3.
In [ ]:
Go through the string below and if the length of a word is even print "even!"
In [ ]:
In [ ]:
Write a program that prints the integers from 1 to 100. But for multiples of three print "Fizz" instead of the number, and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".
In [ ]:
Use List Comprehension to create a list of the first letters of every word in the string below:
In [ ]:
In [ ]: