Search this site
Embedded Files
Python Jedi
  • Chapters
    • Fork/Clone
    • 1 Version Control
    • 2 Python Console
    • 3 Input/Output
    • 4 Conditionals
    • 5 Looping
    • 6 Num. Systems
    • 7 Graphics
    • 8 Lists/Strings
    • 9 Functions
    • Prisoner's Dilemma
    • 10 Classes
    • 11 Animation
    • 12 User Control
    • 13 Libraries/Modules
    • 14 Game Design
      • 14 Sprites
      • 14 Shooting
      • 14 Explosions
      • 14 Levels
      • 14 Aiming Trig
      • 14 Walls
      • 14 View Port
      • 14 Grids
    • 15 Data Analysis
Python Jedi
  • Chapters
    • Fork/Clone
    • 1 Version Control
    • 2 Python Console
    • 3 Input/Output
    • 4 Conditionals
    • 5 Looping
    • 6 Num. Systems
    • 7 Graphics
    • 8 Lists/Strings
    • 9 Functions
    • Prisoner's Dilemma
    • 10 Classes
    • 11 Animation
    • 12 User Control
    • 13 Libraries/Modules
    • 14 Game Design
      • 14 Sprites
      • 14 Shooting
      • 14 Explosions
      • 14 Levels
      • 14 Aiming Trig
      • 14 Walls
      • 14 View Port
      • 14 Grids
    • 15 Data Analysis
  • More
    • Chapters
      • Fork/Clone
      • 1 Version Control
      • 2 Python Console
      • 3 Input/Output
      • 4 Conditionals
      • 5 Looping
      • 6 Num. Systems
      • 7 Graphics
      • 8 Lists/Strings
      • 9 Functions
      • Prisoner's Dilemma
      • 10 Classes
      • 11 Animation
      • 12 User Control
      • 13 Libraries/Modules
      • 14 Game Design
        • 14 Sprites
        • 14 Shooting
        • 14 Explosions
        • 14 Levels
        • 14 Aiming Trig
        • 14 Walls
        • 14 View Port
        • 14 Grids
      • 15 Data Analysis

Fork/Clone Ch.06 Num. Systems Jedi Training

The Decimal System

     Our numbering system is called the Decimal System. The Deci- prefix means Base-10. There are 10 digits that are used in this system. They are 0,1,2,3,4,5,6,7,8,9. Watch the video on the right to have a better understanding of the Decimal System

The Binary System

     Computer machine code uses a Binary System. The Bi- prefix means Base-2. There are 2 digits that are used in this system. They are 0 and 1. This basically correlates to off and on. Watch the video on the right to be trained in Binary.

Play the Binary GAme

Play the binary game by clicking on the image on the right. When you get over 10,000 points, take a screenshot of your score by using Command-Shift-3 on a Mac or call your instructor over to observe your amazingness. You must reach 10,000 pts to check off this activity.

Once you have this completed, you need to login to CANVAS and complete the Decimal/Binary section of the FIFA.

The Octal System

     Another numbering system is called the Octal System. The Oct- prefix means Base-8. There are 8 digits that are used in this system. They are 0,1,2,3,4,5,6,7. Watch the video on the right to be trained in Octal. Once you've been trained, you need to login to CANVAS and complete the Octal section of the FIFA.

The hexadecimal System

     Another numbering system is called the Hexadecimal System. The Hexadeci- prefix means Base-16. There are 16 digits that are used in this system. They are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Watch the video on the right to be trained in Hexadecimal. Once you've been trained, you need to login to CANVAS and complete the Hexadecimal section of the FIFA.

Conversions

     Because 23 = 8 and 24 = 16, we can use some tricks to easily convert directly from binary to either octal or hexadecimal. Or from either octal or hexadecimal directly to binary. The video on the right tries to explain how we can do this. Once you've been trained, you need to login to CANVAS and complete the number conversions section of the FIFA.

ASCII Code

     Each character you type on a keyboard is an abstract of an underlying binary code. Watch the video on the right to be trained in ASCII codes. Below is an ASCII table for you to easily look up codes.  Once you've been trained, you need to login to CANVAS and complete the ASCII codes section of the FIFA.

You can use Python to determine the decimal number of a character by using the ord function or find the character of a decimal number by using the chr function. When we get to the chapter on Lists, we will use this to make secret codes! Predict the following:

print(chr(64))

print(ord("!"))

RGB color codes

     Before we start using graphics in Python we need to understand RGB and Hexadecimal color codes. You can also enter hex codes at ColorPicker.com. Watch the video on the right to be trained in RGB and Hexadecimal color codes.  Once you've been trained, you need to login to CANVAS and complete the RGB and Hexadecimal Color Codes section of the FIFA.

Quick Lookup:How to download and turn in Jedi Tasks
Syllabus
Marc C. Hermon - Python Jedi InstructorUrbandale High School, Urbandale, Iowahermonm@urbandaleschools.comWebsite: EngineeringU.com
Google Sites
Report abuse
Google Sites
Report abuse