Difference between revisions of "Introduction to Python"
m |
|||
Line 20: | Line 20: | ||
===[[Calculate days in a month]]=== | ===[[Calculate days in a month]]=== | ||
===[[Grade Conversion]]=== | ===[[Grade Conversion]]=== | ||
+ | =While and for loops | ||
+ | ===[[Convert a for loop to a while loop]]=== | ||
+ | ===[[Print Alphabets]]=== | ||
+ | ===[[Validate Input]]=== | ||
=Conclusion= | =Conclusion= | ||
===[[Conclusion]]=== | ===[[Conclusion]]=== | ||
}} | }} |
Revision as of 12:15, 3 April 2012
COMP 1010 Home > Back to Extra Labs
IntroductionPython programming language was created by Guido Van Rossumin in the 1980's. It is a general purpose, object-oriented, expandable and described programming language. Python has an artistic syntax that allows its users to read code easily as well as understand the code. It is used for creation of web applications. Further, it has an inbuilt development environment called IDLE and a large library that supports huge projects. In this lab, you will be taught how to program in this very exciting programming language called Python. The medium in which you will learn this program is through getting to actually practice on your own. Furthermore, in this lab, i will translate some of the programs you may have seen in “Program a day “ that are written in Java programming language. Hope you enjoy this lab. Ouuups! Least I forgot, you can get started by downloading python from www.python.org.
|
---|
Getting Started
HelloWorld
Primitive Data Types
Area Calculation
Convert Temperature
Wind Chill
If/else/elif
Calculate days in a month
Grade Conversion
=While and for loops