Multiple ways of taking input in python
There are a multiple ways to take input. In most of the coding problems,we have to take input in different formats. Let's see some of the formats now. To take integer input: x=int(input()) Values are integers,if we print x value,x will be printed as integer value. To take float input,that is decimal values like 5.5,0.5,-0.6 etc . x=float(input()) we can also give integer values as input like 5,-5 etc.But if we print x,it will print them in float values i.e. 5.0,-0.5,-0.6 To take string input,i.e. characters or sentences. x=input() inputs like p,python,python is best. Take n number of integer inputs one after another . n=int(input()) for i in range(n): x=int(input()) Take n number of float inputs one after another. n=int(input()) for i in range(n): x=float(input()) Take n number of string inputs one after another. n=int(input()) for i in range(n): x=input() Take unknown number of integer inputs at a ti...