Try this code in your browser: click here
https://tinyurl.com/6hkfpbd6
Indentation is meaningful in Python, and it determines how your program will run. We introduce indentation in the context of if-else statements; indented blocks allow you to include more than one line of code in each branch. The structural use of indentation helps give Python programs their characteristically tidy and highly readable appearance. For more information and to try out the code, click on the link above - a notebook will open in your browser, no need to install Python on your machine.
Embedded video, also part of the following courses:
Computer Programming at Queen Mary, University of London
FREE Colab notebook: https://tinyurl.com/4umjbjvp
Coding for Scientists at Queen Mary, University of London
FREE Colab notebook: https://tinyurl.com/539p4b5f