Colab Exercises#

Please follow the steps below:

  1. Create a folder in your Google Drive and rename it as python_labs.

  2. Within this folder, create a Colab notebook and give it the name firstname_lastname_lab_colab using your own name.

  3. Insert a text cell, enter Biography, and set it as a heading with level-1.

  4. Enter Albert Einstein to the same text cell, and move it to become the first cell in the notebook.

  5. Below that, insert another text cell, enter Education, and set it as a heading with level-2.

  6. Include the following two items in this text cell as a bullet list, with degrees and years as sublists.

    • Federal polytechnic school (Dipl., 1900)

    • University of Zurich (PhD, 1905)

  7. Below that, insert another text cell, enter Awards, and set it as a heading with level-2.

  8. Include the following items in this text cell as a numbered list.

    • Barnard Medal (1920)

    • Nobel Prize in Physics (1921)

    • Matteucci Medal (1921)

    • ForMemRS (1921)

    • Copley Medal (1925)

    • Gold Medal of the Royal Astronomical Society (1926)

    • Max Planck Medal (1929)

    • Member of the National Academy of Sciences (1942)

    • Time Person of the Century (1999)

  9. After the second item above, insert a horizontal line.

  10. Change the color of the third item to red.

  11. Emphasize the fourth item by making it bold.

  12. Increase the font size of the seventh item to 20.

  13. Italicize the eighth item.

  14. Highlight the last one.

  15. Create a new text cell and construct a table with two columns and nine rows, including Award and Year as the column headers.

  16. Insert four code cells, perform one algebraic operation in each, and include a meaningful comment for clarity in each cell.

  17. Insert a code cell and print ‘Tesla’ 10 times in a single line.

  18. Insert a code cell and embed a YouTube video.

  19. Insert a code cell and embed a picture from a website.

  20. Insert a code cell and calculate the median of the numbers: \(9, 34, 13, 90, 5\).

Hint: The output of the text cells should be as follows:

Biography#

Albert Einstein

Education#

  • Federal polytechnic school

    • Dipl.

    • 1900

  • University of Zurich

    • PhD

    • 1905

Awards#

  1. Barnard Medal (1920)

  2. Nobel Prize in Physics (1921)


  1. Matteucci Medal (1921)

  2. ForMemRS (1921)

  3. Copley Medal (1925)

  4. Gold Medal of the Royal Astronomical Society (1926)

  5. Max Planck Medal (1929)

  6. Member of the National Academy of Sciences (1942)

  7. Time Person of the Century (1999)

Award

Year

Barnard Medal

1920

Nobel Prize in Physics

1921

Matteucci Medal

1921

ForMemRS

1921

Copley Medal

1925

Gold Medal of the Royal Astronomical Society

1926

Max Planck Medal

1929

Member of the National Academy of Sciences

1942

Time Person of the Century

1999