•  
    Vocab

    Equations:

    Operations: + - * /   (addition, subtraction, multiplication, division)

    Variables: a number or symbol that represents a number or value, a place to store information

    = symbol is important to declare a variable and is not used when solving an equation

     

     

     

    x=5

    print x 

    5 will show up

     

    y= 10

    print y

    10 will show up

     

    print x*y

    50 will show up

     

    print x+y  --> 15

    print x-y   --> 5

    print y-x  -->  -5

    print y/x  --> 2

    print x/y  --> 0 but will show 0.5 ONLY IF y=10.0 instead of just 10

    B=20

    r=99

    print x+B-r will work but if you use capitals vs. lowercase it will not work unless you have defined the values!

     

    string: anything you want printed surrounded by "" marks

    lunch= "french fries, apple, burger, hot cheetos, round donut"

    print lunch ----> french fries, apple, burger, hot cheetos, round donut

    lunch= "french fries, burger, round donut"

    print lunch ----> french fries, burger, round donut

    If you change your variable later on in your program the PRINT function will only use the variable that you last used/updated!!! 

     

     

     

     

     

    Vocab

    Python: the computer language that we use to create a program

    Program:  what we type in the computer to make our computers do something

    String: lines of coding language that we use (sort of like a sentence but it can be just a single word)

    print: if you type the word print it will make your program type/print for you.

    **all commands need to be lowercase **anything in the quotation marks will print even if it is misspelled.

              print "What is your favorite kholor?"    will show      What is your favorite kholor?

    print (numbers): when you want numbers or values to appear do not use quotation marks.

    print "1+1" will show    1+1

    print 1+1 will show        2

    print 534 will show       534

    print 5*4 will show       20

    print  10/5 will show      2

     

    Class
    cms_file_59122381_med.jpg
     
    cms_file_59122394_med.jpg