python nicholas cousino wra 150. what is it? programming language general purpose high-level...

19
Python Nicholas Cousino WRA 150

Upload: brian-phelps

Post on 13-Jan-2016

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

Python

Nicholas Cousino

WRA 150

Page 2: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

What is it?

• Programming Language• General Purpose• High-Level• Readability

Page 3: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

Readability

command = input("What would you like to do?").lower()

elif command == "accounting":

total = 0.00

for item in prices:

total += prices[item] * stock[item]

print ("Total Inventory equals

${amount}".format(amount=total))

Page 4: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

What can Python do?• A simple version of Battleship!

• Other projects on website http://www.msu.edu/~cousin46

Package

Page 5: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability
Page 6: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability
Page 7: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability
Page 8: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability
Page 9: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability
Page 10: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability
Page 11: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

Battleship!

• A quick glance at the source code…

Page 12: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability
Page 13: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

Battleship!

• Hardest Part:Learning what individual lines do

Page 14: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

Battleship!

• It gets easier!

Page 15: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

Learning Python

• Codecademy• Resources from Department of

Computer Science and Engineering

Page 16: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

Outcome

• I learned Python

Page 17: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

Outcome

• I learned Python• I learned the basics… … But a good foundation

Page 18: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

Outcome

• More to learn, but I did get a good start

Page 19: Python Nicholas Cousino WRA 150. What is it? Programming Language General Purpose High-Level Readability

Works Cited

Codecademy. N.p., n.d. Web. 31 Mar.

2014.

McCullen, Mark. CSE 231. Michigan

State University, East Lansing.

Lecture