Dec-25-2021, 03:50 AM
Yes you can put them in a module and call them in your class file.
If you use:
If you use:
import checkhandfunctionsThen you'll have to call the functions like this:
checkhandfunctions.checkforpair (hand)If you use:
import checkhandfunctions as chfThen you'll have to call the functions like this:
chf.checkforpair (hand)And if you use:
from checkhandfunctions import *Then you'll have to call the functions like this:
checkforpair (hand)Got it?