Python 3.3: loop crashed i think : I'm working on a series of projects for schoolwork, and this is one of the challenges set:

"'''
Factorial Finder

The Factorial of a positive integer, n, is defined as the product of the sequence n, n-1, n-2, ...1 and the factorial of zero, 0, is defined as being 1. 

Solve this using both loops and recursion.
'''   
   
    num = input("Type number: ")
    num1 = str(float(num) - float(1))
    fnum = float(num) * float(num1)
    while (num1 != 1): 
        num1 = str(float(num) - float(1))
        fnum = float(num) * float(num1)
    else:
        print(fnum)"


But when it comes to running the code, you input a number and the program outputs nothing. How can i solve this?