Programming+With+Python

[[image:tngd/python-logo.gif]] What is python?
Python is a programming language used in many modern games, such as Sid Meyers's Civilization IV or even Battlefield Heroes , 2 and 2142.

There are many types of programming languege, an example is java. Differently from java python's coding is structured in a way that requires less code, but it doesnt have a GUI programming tool as developed as java.

Objectives:
by the end of the workshop you should be able to :

1)Make a program that writes your name 2)Make a program that answers your questions 3)Make a program that solves math operation

please download this pdf

Our Tasks
the workshop will be divided into different tasks

Starter activities, do you know python ?
students will discuss what python is and will get rewarded.

task one : print your name
learn the function print, the result will be a program that writes your name

this is the function that will execute your code (my name is Alessandro) :

print ("Alessandro")



Task 2: input
learn the function input and ask the computer questions such as who am i? or how old are you?

we first need to understand what a variable is, a variable in this case is the word we are telling the computer (string ) , however there are many other types of variables

x=input("what is your name?") print (x)



Task 3 : time to go on your own
learn how to make calculations on python and then its time to let people work on their own, people will be given a leaflet with different options and will be able to work creatively and develop new skills

now a number is not a string variable, it is called an integer if a single number (5) or double if the number has decimals (2.6) , therefore we cannot use raw_input (we are just gonna use input )

x=int(input("number 1:")) y=int(input("number 2:")) z=y+x print(z)



End and extras

if you want to learn python or other programming language visit [|www.codeacademy.com] and remember that the official website is at [|http://www.python.org]