Course A201:Introduction to Programming

Course A201:Introduction to Programming
Slide Note
Embed
Share

In Course A201: Introduction to Programming, the lab instructor Linger (Tian Xu) leads second-year graduate students through various concepts, including getting familiar with IDLE, understanding shells and scripts, learning about functions, handling errors, and more. This week's focus includes using Python version 2.6, discussing functions, type conversions, and setting up access to example scripts and materials. Stay updated on lab locations and times for a seamless learning experience. Connect with the instructor for further guidance and enjoy exploring the world of programming.

  • Programming
  • Lab Instructor
  • Python
  • Functions
  • Error Handling

Uploaded on Feb 16, 2025 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Course A201: Introduction to Programming 09/09/2010

  2. Lab Instructor Linger(Tian Xu), second year graduate student joint degree of Computer Science and Cognitive science Multisensory Lab directed by Prof. Chen Yu E-mail: txu@indiana.edu

  3. Special Note! From now on Thursday lab location Friday lab location BH108, 4:00-5:00pm BH107, 10:10-11:00am Better for you, better for us

  4. Recap Textbook Chapter 1 to 2 1. Get familiar with IDLE designed for python 2. Know what s shell, what s a script 3. How to print out something by using function print 4. Write comments 5. What is the concept of function , can I write one? (more on this in the future) 6. When error happens, how can I deal with it?

  5. Recap See the example script -> This week I will Email you all the example script or slides I used in labs, next I will set up a website you can access all the materials. However, I will mostly use the slides you see in the lecture to avoid redundancy

  6. This week Let s open IDLE Python version 2.6 installed instead of 3.1 Add this line in the very beginning: from __future__ import print_function, division Using input will give you an error, use raw_input instead

  7. This week [functions] Ex: radius = float(raw_input( Radius: )) Execute this function first This is a combination of two functions: radius = raw_input ( Radius: ) # radius now contains a string value radius = float(radius) # radius now contains a float value

  8. This week From inside to outside [functions] Ex: radius = float(raw_input( Radius: )) Then do the type conversion This is a combination of two functions: radius = raw_input ( Radius: ) # radius now contains a string value radius = float(radius) # radius now contains a float value

  9. Have a nice evening! See you next time~

Related


More Related Content