Wednesday, August 17, 2016

Programming Class Notes August 17 2016


  • How to Comment
    • #Comment
  • How to Display Text
    • print ("Text")
      • Or...
        • print('Text')
  • How to Set A Variable To Equal a Number
    • variable name = variable value
  • What is this "=" symbol called?
    • Assignment Operator
  • How to Print A Variable's Name And Its Value, If Its Value Is A Number?
    • print("variable name =" + str(variable name))
  • How to Print A Variable's Value, But Not Its Name, If Its Value Is A Number?
    • print(variable name)
  • What is an Example of a Chained Assignment?
    • a = b = 2
      • This means that...
        • a = 2
        • b = 2
  • How To Complete An Addition Calculation
    • print(Number Value + Number Value)
  • How Do You Add Two Text Strings Together
    • print("text" + "text")
      • This will result in...
        • texttext
  • How To Save A Python File
    • Copy the Text Into A Notepad File
    • Save the Text File as a ".py" extension file

No comments:

Post a Comment