Colab Exercises#
Please follow the steps below:
Create a folder in your Google Drive and rename it as
python_labs
.Within this folder, create a Colab notebook and give it the name
firstname_lastname_lab_colab
using your own name.Insert a
text
cell, enter Biography, and set it as a heading with level-1.Enter Albert Einstein to the same text cell, and move it to become the first cell in the notebook.
Below that, insert another
text
cell, enter Education, and set it as a heading with level-2.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)
Below that, insert another
text
cell, enter Awards, and set it as a heading with level-2.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)
After the second item above, insert a horizontal line.
Change the color of the third item to red.
Emphasize the fourth item by making it bold.
Increase the font size of the seventh item to 20.
Italicize the eighth item.
Highlight the last one.
Create a new text cell and construct a table with two columns and nine rows, including Award and Year as the column headers.
Insert four code cells, perform one algebraic operation in each, and include a meaningful comment for clarity in each cell.
Insert a code cell and print ‘Tesla’ 10 times in a single line.
Insert a code cell and embed a YouTube video.
Insert a code cell and embed a picture from a website.
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#
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)
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 |