Example
List Methods - append, insert, pop
Adding and removing elements from list. Methods append, insert, pop and remove.
9 results
Example
Adding and removing elements from list. Methods append, insert, pop and remove.
Quiz
Free beginner quiz on Python lists: 15 questions on indexing, slicing, append, insert, pop, remove, sorting and copying, with instant answers.
Example
Methods sort() and reverse() for ordering list elements.
Quiz
…The comma that makes a tuple, and how tuples compare with lists Unpacking, with * and in for loops Why tuples cannot change, and how to build a new one instead count() , index() , sorting, nested…
Example
…replacing and splitting text. Advanced string manipulation methods.
Quiz
…keys() , values() and items() Counting with a dictionary, lists inside dictionaries and nested dictionaries How it works 15 questions: 11 with one correct answer, 4 where you select every correct…
Quiz
…20 multiple-choice questions on print(), strings, lists, dictionaries, loops and functions, with instant answers.
Article Python Fundamentals
…Hint: look up string slicing ( name[:3] ) and the .upper() method. Stretch goal: use the random module to add two random digits at the end. 5. Go / no-go check Write is_go_for_launch(fuel, wind_speed…
Article Python Fundamentals
…first half covers Python fundamentals (variables, lists, dictionaries, functions, classes), while the second half walks you through three complete projects - a Space Invaders-style game, data…