Description
Important reminder for your first lab
- You must submit your lab via web-submit.
- Please make sure you correctly submit your file(s).
- Please follow the instructions carefully.
1. GOALS/OUTCOMES FOR LAB
- To get you familiar with code Python
- To get you familiar with your PyCharm IDE
- To write your own Python code
- To get you familiar with submitting your lab results through websubmit
2. LAB 1 – TASK/INSTRUCTIONS
Part 1: Start you code with comments that include this lab ID, your full name, email address, and student id as follows:
# Lab 1
# Author:
# Email: @aol.com # Student ID:
Part 2: Introduction
Your program will print your name, your student ID, and where you currently live (city and country).
Part 3: Convert hours to minutes and to seconds
In the same program after part 2, you should prompt the user to provide a number of hours.
The user can input the hours as either an integer or float. You should then convert the number of hours into (1) the number of minutes in the hour and (2) the number of seconds in the hour. The conversion should be as floating point.
See an example of the output of your program below – part in red was typed in by the user:
| My name is……
My York student id is……. I currently live in Ammand, Jordan Enter number of hours: 4.6 Converted to minutes 276.0 Converted to seconds 16560.0 |
Part 1:
- File name must be “lab1.py” (all lowercase, no spaces)
- The Python comments at the beginning of your program must include your name, email, and York student id



