How To Take Dynamic Input In Python