Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
About
People
Publications
Teaching
Resources
Research Blog
Wiki Functions
Recent changes
Help
Licensing
Page
Discussion
Edit
View history
Editing
DS4UX (Spring 2016)/Day 1 exercise
From CommunityData
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
For the exercises tonight, please do the following things: * Start your laptop and get on the wireless network. * Work through the goals on this page in order. Ray and I will help troubleshoot and to answer questions β don't hesitate to ask! '''Please be sure to finish the installation and setup steps before you leave class today''' β otherwise you won't be able to complete the coding challenges for next week. == Goal 1: Set up Python == (Estimated time: 5 minutes) First things first: We need to install the Python programming language. Please complete the instructions below for your operating system: * [[Windows set up Python (Anaconda)|Windows]] * [[OSX set up Python (Anaconda)|OS X]] == Goal 2: Prepare a text editor == (Estimated time: 5 minutes) In addition to being able to run Python, we are going to install a good text editor for writing and saving Python code during the workshop.<br /> If you would like to use a different text editor from the recommendation for your operating system, please let a staff member know. * [[Windows text editor|Windows]] * [[OSX text editor|OS X]] == Goal 3: Practice starting and exiting Python == (Estimated time: 5 minutes) We'll do a lot of learning and practicing at a Python prompt (this is "interactive" because you are typing the code and hitting enter to run it yourself, instead of running it from a file). So let's practice starting and exiting Python: * [[Windows interactive Python|Windows]] * [[OSX interactive Python|OS X]] == Goal 4: Practice navigating the computer from a terminal == (Estimated time: 10 - 15 minutes) Throughout this workshop, we'll be running Python programs from the terminal, which means we'll want to be comfortable with navigating to those programs from the terminal prompt. In this section, we'll practice using these navigation commands. * [[Windows terminal navigation|Windows]] * [[OSX terminal navigation|OS X]] == Goal 5: Practice running Python code from a file == (Estimated time: 5 minutes) Interactive Python programming at a Python prompt is great for short pieces of code and for testing ideas. For longer code, it can be easier to save the code in a file, and execute the contents of that file (aka a Python script). In this section, we'll practice running Python scripts. * [[Windows Python scripts|Windows]] * [[OSX Python scripts|OS X]] == Goal 6: Start learning Python! == (Estimated time: 60 - 90 minutes) It's time to start learning, reading, and writing some Python! Tonight, you'll work through a self-directed tutorial. Next week, we'll have an interactive lecture to cover more Python basics. <div style="font-size:125%">[[DS4UX_(Spring_2016)/Day_1_tutorial|» Click here and work through tonight's tutorial «]]</div> == Goal 7: Practice Python using Codecademy == (Estimated time: 30 - 60 minutes) It's time to use what we've learned in the tutorial and get some practice thinking about and solving problems in Python. To give you this practice, we've created custom online practice problems just for this class, using a site called Codecademy! Tonight, please visit the link below and complete the '''8 practice problems in the "Strings and choices" section'''. '''Go ahead and skip problem #4 ("Make HTML")'''. It's not a problem if you do it but we find that it's confusing and we'd prefer to skip it this time. <div style="font-size:125%">[http://www.codecademy.com/courses/python-beginner-en-kSQwt » Click here and complete tonight's Codecademy exercises «]</div> You don't have to create a Codecademy account to do the exercises, but if you do create an account it'll keep track of which problems you've completed and other statistics. ==Congratulations!== [[File:Champagne.png|100px]][[File:Party.png|125px]] [[Category:DS4UX (Spring 2016)]]
Summary:
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see
CommunityData:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Tools
What links here
Related changes
Special pages
Page information