Variables, Strings, and Lists Flashcards
What can variables not be?
Digits, special characters
Assignment is not ____?
Symetric
String
Series of characters
What characters mark strings?
Quotes
If you have apostrophes and quote marks, and the syntax is important, what do you do?
Use slash marks
How do you separate strings?
Commas
How do you make words appear bigger?
title()
Float
Anything with a decimal
How do you make something a float?
Add a decimal
How do you remove whitespace?
Associate rstrip() with the variable name
How do you represent exponents?
**
List
Collection of items in a particular order
What three things can lists include?
Letters of the alphabet, digit, or names
How is an empty list displayed?
[]
How do you assign a new value to a specific element?
[list name element #) = ‘new name’