Where Innovation Is Tradition

Download Report

Transcript Where Innovation Is Tradition

Lab #1, CS 112
Lab Introduction
Installing Python
Where Innovation Is Tradition
Welcome to our lab!
Purpose of this course is to learn basic
programming principles
We will do so by learning Python
Here we demonstrate how to write code, and any
topic you have trouble with
Where Innovation Is Tradition
GTA: Georgios Georgakis
CS Ph.D Student
• Office hours
Tuesday
10:30am – 12:30pm
Wednesday 10:30am – 12:00pm
Room: ENGR 4456 ?
• Email
[email protected]
Where Innovation Is Tradition
UTA: Jason Thomas
CS B.S Student
Email me!
[email protected]
No office hours…
Where Innovation Is Tradition
Lab Work
• Exercises
• Coding exercises. Can submit them after the lab.
• Quizzes
• On paper questions. Usually 10 minutes at the end of the
lab.
• Tasks
• Coding exercises. Need to be submitted during lab time.
You need to attend the lab in order to get credit!
Where Innovation Is Tradition
When projects come
• I can understand materials covered in lectures
• I think I know how to code this project
• My code finally compiles and runs!!!!
• MILESTONE, no more, no less
• My program completes the required work
correctly
• They said my program is well written
• THIS IS OUR GOAL
Where Innovation Is Tradition
Difficulties for newbies
You are talking to a machine, not a human
The tools/software are intended for technical users
Where Innovation Is Tradition
What we have in lab?
Setting up coding environment, today
Help you on anything you have trouble with
• Lab is most valuable for our interaction
• Other than the material itself, your questions
and feedback will customize the lab!
Where Innovation Is Tradition
Feel comfortable in lab
Interrupt me any time you have questions, or
want me to repeat something
There are no stupid questions!
Any questions and suggestions are welcome, in
lab, email or office hours
Where Innovation Is Tradition
Resources
Course syllabus
•
https://cs.gmu.edu/syllabus/syllabi-spring16/CS112ZhongY.html
• Syllabus, Honor code, schedule available here
Piazza, online gathering place
• https://piazza.com/gmu/spring2016/cs112zhong/h
ome
• Ask, Answer, Explore, Lab Material
Blackboard (mymason.gmu.edu)
• view grades, project submission/feedback
Where Innovation Is Tradition
How to find them?
Sign up for Piazza here:
https://piazza.com/gmu/spring2016/cs112zhong
Where Innovation Is Tradition
Use your laptop
I will show you how to install Python 3 on this
lab machine
Then run some simple Python code
• Via command prompt(CMD)/terminal
• Via .py file
Where Innovation Is Tradition
Installing Python 3
Where Innovation Is Tradition
Download Python 3.x.x
Where Innovation Is Tradition
Install Python 3
Where Innovation Is Tradition
Run Python via CMD
Where Innovation Is Tradition
Attention
If you use lab machine, please use ‘python3’
instead of ‘python’ in CMD
Where Innovation Is Tradition
Attention
If you use Mac, you will use Terminal instead of
CMD
• Go to application folder>Utilities>Terminal
Where Innovation Is Tradition
Run Python via .py file
Where Innovation Is Tradition
Install a text editor
Where Innovation Is Tradition
Do not use IDLE
Where Innovation Is Tradition
Q&A
Make sure you are ready to write code
• Course pages, Piazza, Blackboard …
Do make sure you have ran Python code via
CMD and .py file before leaving lab.
Have trouble?
• Ask TA or guys around you for help
• Come to office hour, post on Piazza
Where Innovation Is Tradition
Lab 1 Exercise
• Go on Piazza and download the instructions
under the resources tab
• Objective is to submit a .py file with code that
prints “Hello World” and a screenshot
depicting your command line doing that
• Submission is on Blackboard
Where Innovation Is Tradition