220
Week 1
Installation
- To install Python, go to "PythonDownload" https://www.python.org/
- select the latest version, and follow the instructions.
I will not accept any code in Python interactive mode. To create a program in batch mode In IDLE do the following.
- Go to File ->New File-> A new editor for coding will open, write your code in the new window.
- Once you are done coding, hit F5 or go to run->Run module.
- If the file is not saved, it will prompt you to save the file. Make sure you know where you saved the file.
- If the code has bugs, go back to the editor, and fix the bugs, pay attention to the error message.
- The final code is the code you should submit.
- Review the hints in announcement
- Write the following code.
"""
Program name:
class info: name, number, term, year (i.e., ENTD007 X007 autumn 2077)
Author:
Data:
Notes:
"""
# This is commenting line
# This is a test to see if Python is working.
myname=input("Enter your name ")
print("Hello ENTD220, My name is ", myname)
This IDE supports many languages, and after installation install the desired language(s) extension.
- If you are going to use any other editor, make sure it saves the code in text format. I run all submitted code on my computer.
- Do NOT use MS Word or PPT to write code and save them as .py, these are not text editors and do not save the files in text format.
- Note, to attach code to an email (for me to review ONLY), you must rename the file to .py.txt
- When submitting the code to the classroom for grading. It must be runnable .py.
Submission Instructions:
Make sure that you save your code in a text file in this format.
W1_firstname_lastname.py

Image Source: https://www.python.org/
a year ago
20
other Questions(10)