Monday, August 29, 2016

Programming Notes August 29 2016


  • How to Add Text Strings
    • print ("text string" + "text string")
  • How to Multiply Text Strings
    • print ("text string" * number value)
  • How Do You Verify What Type/Class A Statement Is?
    • print (type (Integer or Float or Text String))
  • How Do You Change The Type/Class of A Statement into an Integer?
    • print (int (float or text string))

  • How Do You Change The Type/Class of A Statement into a Float?
      • print (float (integer or text string))
    • How Do You Change The Type/Class of A Statement into a String?
      • print (str (integer or text string))
    • How To Print Variable Name = Variable Number Value?
      • print ("variable name = " + str (variable name))
    • How Do You Import The Math Module?
      • Import Math
    • How Do You Find The Solution to A Logarithm In Python?
      • print (math.log number value (number value))
    • How Do You Find A Square Root In Python?
      • print (math.sqrt (number value))
    • How Do You Find Pi In Python?
      • print (math.pi)
    • How Do You Program a Function That Just Prints Two Text Strings?
      • def print_variable name ():
        • print("text string")
        • print("text string")
      • To Run This Function
        • print_variable name ()
    • How Do You Program a Function That Just Prints A Different Function Twice?
      • def print_variable name ():
        • print_function name ()
        • print_function name ()
      • To Run This Function
        • print_variable name ()
    • Debugging
      • F7
        • First highlight a line
        • Right Click The Line 
        • Select Debug
        • Then click F7
          • It will then step through each process throughout the code, and you can follow along with the program one line at a time, to understand exactly what is happening

    No comments:

    Post a Comment