Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/02-Python Statements/08-Statements Assessment Test - Solutions.ipynb
Views: 648
Statements Assessment Solutions
Use for
, .split(), and if
to create a Statement that will print out words that start with 's':
Use range() to print all the even numbers from 0 to 10.
Use List comprehension to create a list of all numbers between 1 and 50 that are divisible by 3.
Go through the string below and if the length of a word is even print "even!"
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".
Use a List Comprehension to create a list of the first letters of every word in the string below: