Python Flashcards
Find an index number
my_list.index(200)
Assign a value to an existing index
my_list[4]=100
Allow user to input a value
my_list[9]=input()
Print the length of list
print(len(my_list))
Add another value to the end of an existing list
my_list.append(200)
Remove an indexed value
my_list.pop(5)
Make whole string uppercase
.upper()
Make whole string lowercase
.lower()
Make only first letter of every word uppercase.
.title()
Count the number of a certain character in a variable.
.count(x)
Print an indexed value
print(variable[number])
Loop while condition is true
while x==x:
Repeat a certain number of times
for i in range(number):
Range
range([starting number], [up to but not including], [steps])
Check if is upper
.isupper()