Prime numbers are natural numbers that cannot be divided by any other numbers. Example: 13 is prime because it cannot be divided by 1 or any other numbers
VLC Python module provides full libVLC support for simple MP3 playback. Pygame offers limited MP3 playback capabilities. pydub can convert MP3 to WAV format for pyAudio playback. playsound module provides basic MP3 playback functionality
.replace() method replaces all occurrences of a character with a new one. Method returns a copy of the string, preserving the original text. Requires two required parameters: old_text and new_text enclosed in quotes
Try...catch statement consists of try block and one or more catch/finally blocks. Try block executes first, catch block handles exceptions. Finally block always executes before control flow exits
String module provides constants for ASCII characters and basic string formatting. Formatter class enables custom string formatting using PEP 3101 syntax. Format strings use curly braces {} to contain replacement fields
root.destroy() method closes window and exits mainloop. exit() method ends Python program execution. Custom quit_tk() function can be defined for window closure