How To Give Dynamic Input In Python Is Not Working