/python_your_fada

some stuff while learning la python

Primary LanguagePython

python_your_fada

ordinals

ordinals for number 1 are:

  • first
  • 1st

available methods:

fgr

To convert the number digit to a figure ordinal. examples:

print(fgr(23))

#prints 23rd

print(fgr(2))

#prints 2nd

print(fgr(17267388723))

#prints 17267388723rd

recursives

learning and testing recursive functions, embedded functions. will add other examples maybe.

available methods:

  • factorial:

    Calculates the factorial of a number. n!

  • print_no_loop:

    Prints a number mulitple times

  • add_no_loop:

    Adds a number multiple times