2.2.3 Additional Programming Techniques

Cards (5)

  • What is the output when the following commands are executed?print(s.length)
    s = 'Hello World'
    11.
  • .length is…?
    A string manipulation method that returns the number of characters in a string including spaces.
  • What symbol is used for concatenation?
    +
  • What is concatenation?
    Combining two or more strings together.
  • How to import a random number 
    import random
    n = random.randint(x,y)
    print(n)