際際滷

際際滷Share a Scribd company logo
How To Python*Medhat dawoudSoftware Junior Developermedhatdawoud@gmail.comhttp://med7at.wordpress.com* Program with pythonOctober 12,20101
Python?Father	Guido Van RossumBirth-year 1989Born atAmsterdamOctober 12,20102
Pythons Father Guido Van Rossum is Netherlands, who write the python programming language as a successor to the ABC programming language, in his week ends , and call it python Relative to the a British television comedy sketch on the BBCCalled Monty Python's Flying CircusOctober 12,20103
Python?Platform independentInterpreter LanguageScript LanguageSupports OOPObject Oriented ProgrammingOctober 12,20104
Why Python ? Easy Syntax Easy Grammar Easy Data Structure Many PackagesVery ReadableVery FlexibleUsually Short CodeEasy to Manage CodeEasy to Work TogetherOctober 12,20105
Get Python!On Windowshttp://www.python.orgDOWNLOADRecommended Version 2.5.X <=October 12,20106
Get Python!On Debian Linux ~# apt-get install python ~$ sudo apt-get install pythonOctober 12,20107
Run Python! ~$ pythonOctober 12,20108
Run Python! ~# apt-get install ipython ~# ipythonOctober 12,20109
Python SyntaxUse python as simple calculator>>> 1 + 2>>> 6 * 8>>> 6.0 * 8>>> 2 ^ 10>>> 2 ** 10>>> _ / 2>>> __ / 4>>> _October 12,201010
Python SyntaxPrint the Hello world!>>> print Hello World!>>> print(Hello World!)October 12,201011
Python SyntaxMultiline TextSingle QuoteINDENTATION!!October 12,201012
Python SyntaxIndentation is also Syntax!!!October 12,201013
Python SyntaxYou MUST keep the same indentation!October 12,201014
Python VariablesBut you dont have to care!October 12,201015
Python VariablesDynamic TypingOctober 12,201016
Python Controlsifforwhiletry, exceptOctober 12,201017
ifa is threeOctober 12,201018
forOctober 12,201019
WhileOctober 12,201020
Try, ExceptOctober 12,201021
Number707.00.755+5jOctober 12,201022
StringOctober 12,201023
StringOctober 12,201024
List, TupleOctober 12,201025
List, TupleOctober 12,201026
DictionaryOctober 12,201027
DictionaryOctober 12,201028
DictionaryOctober 12,201029
Simple inputOctober 12,201030
Do It Yourself #1Your program should do the following	1. Calculate the 2242. Save the result to result	3. Print the resultOctober 12,201031
Do It Yourself #2Your program should do the following	1. Print out the even numbers    between 1 to 1000, without line breaks	2. Print out the 1000 / n   When n is between -100 to 100October 12,201032
Do It Yourself #3Your program should do the following	1. Let given=we are so friend!	2. Using slicing, concatenating, indexing,   and methods, make following result		- we are friend!		- are WE so friend		- so friend we areOctober 12,201033
Do It Yourself #4Your program should do the following	1. Let given=range(100)	2. Using the given, get the following	- Even number between 0~99		- Odd number between 0~99		- Multiplier of 3 between 0~50, 70~99		- List starts from 99 and ends at 1October 12,201034
Do It Yourself #5Your program should do the following	1. Get the input Name and Age	2. Save the Name and Age to dictionary	3. If input is empty   Change the input mode to search4. On search mode   Print the age of given nameOctober 12,201035
SummaryNow you know	How to Install and Run Python	How to Use Python as Calculator	Basic Python Syntax (indentation, quote, multiline text)	Python Data Structure (string, number, list, dictionary, tuple)	Basic Input, Output to the terminal(input, raw_input, print)October 12,201036
You have just learned                            of python!October 12,20103750%
October 12,201038
October 12,201039Thanks

More Related Content

How to python