There where many instances where i have to write large line of code over and over again in multiple programs. so i was wondering if i could write just one program, save it and then call it in different programs like a function or a module.
An elementary example :- I write a program to check if a number is palindromic or not. Then i want to write a program to check if a number is a palindromic a prime, could i just call the first program and do the rest of the code to check if it is prime or not.
P.S I'm just a beginner at python or computer science for that matter and i use IDLE to do all my python programs.