Welcome to YCL! We will meet [amount of time] hour(s) per week We - - PowerPoint PPT Presentation

welcome to ycl
SMART_READER_LITE
LIVE PREVIEW

Welcome to YCL! We will meet [amount of time] hour(s) per week We - - PowerPoint PPT Presentation

Welcome to YCL! We will meet [amount of time] hour(s) per week We will meet in [room] We will start at [time] every [day] We will attend a competition on Dec. 2 We will compete against 19 other teams! Introductions Name


slide-1
SLIDE 1

Welcome to YCL!

  • We will meet [amount of time] hour(s) per

week

  • We will meet in [room]
  • We will start at [time] every [day]
  • We will attend a competition on Dec. 2
  • We will compete against 19 other teams!
slide-2
SLIDE 2

Introductions

  • Name
  • Grade
  • Favorite Ice Cream
slide-3
SLIDE 3

Pick a Team Name

This will be the team name, potentially for years to come...pick wisely!

slide-4
SLIDE 4

YCL Competition Theme

MOVIES AND ADVENTURES

slide-5
SLIDE 5

Why Are We Here?

To have fun! To learn Python! To build games! To learn how to code!

slide-6
SLIDE 6

What is Programming?

Programming means to give a computer instructions. Usually, we put data in, and the computer processes it, and puts out a result.

slide-7
SLIDE 7

What is Python?

Python is a language that we can use to give computers information. It is easy to learn and can be used to build games!

slide-8
SLIDE 8

Python 2 vs. Python 3

All you need to know is that they don’t work well together. Always make sure you are using Python 3.6.0 or later in PyCharm!

slide-9
SLIDE 9

Our Tools

  • Python (Version 3.6.0 or later!)
  • Arcade Library/Package
  • PyCharm
slide-10
SLIDE 10

Hello World!

  • 1. Open up PyCharm
  • 2. Create YCL Project “YCL2017”
  • 3. Create “Session 1” directory
  • 4. Create new “hello.py” Python file
  • 5. Type in print(“Hello World!”)
slide-11
SLIDE 11

hello.py

print(“Hello World!”) print(“Anything else you want!”)

slide-12
SLIDE 12

drawing_sample.py

  • Create a new file, “drawing_sample.py”, under the

“Session 1” directory

  • Go to student portal of course website
  • Find drawing_sample.pdf under “Session 1” tab, copy-

paste code into newly created PyCharm file

  • Run it and see what happens!
slide-13
SLIDE 13

Commenting 101

Commenting helps other people understand our code, and helps us clarify what we want to do (intend) with our code. Practice it for yourself!

slide-14
SLIDE 14

commenting.py

1. """ 2. This is a sample program to show how to draw using the 3. Python Programming language and the Arcade library. 4. _ 5. Multi-line comments are surrounded by three of the double-quote marks. 6. Single-line comments start with a hash/pound sign. # 7. """ 8. # This is a single-line comment.

slide-15
SLIDE 15

Next Week We Will be “Drawing” with Arcade. Let’s sketch it out first! Use graph paper.