Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

4 simple python commands python

No description
by

Eunice Cheung

on 6 April 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of 4 simple python commands python

4 simple python commands
print
the print command is used like this:
print"hi"

if you run that program you get

hi
if
the if command can be used like this:

if 1+1==2:
^ ^
print "math is cool"

run it will do this:

math is cool
else
the else command can only be used with an if command and is used like so:

if 1+5==2:
print"oops"
else:
^
print"good my computer can do math

run

good my computer can do math
Goal
now explore python and get the book
Hello World: Computer Programing for Kids and Other Beginners. ; )
variables
this bubble actually should not be here because the title says commands and this is not a command but is very,
VERY
,
VERY
important thing called a variable and used like this:

number=2

if number==2:
print"yahoo"
else:
print"aw
w
"

this is the reason you use == and why you use""
Full transcript