its saying there is space in my code user__int=int(input('Enter integer (32 - 126):\n'))# asking integer value from user user__float=float(input('Enter float:\n'))# asking float value from user user__char=input('Enter character:\n') # taking character from user user__string=(input('Enter string:\n')) # taking string from user print(user__int,' ',user__float,' ',user__char,' ',user__string)# printing value in given order print(user__string,' ',user__char,' ',user__float,' ',user__int)# printing value in reverse order i.e string,char,float,int
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
its saying there is space in my code
user__int=int(input('Enter integer (32 - 126):\n'))# asking integer value from user
user__float=float(input('Enter float:\n'))# asking float value from user
user__char=input('Enter character:\n') # taking character from user
user__string=(input('Enter string:\n')) # taking string from user
print(user__int,' ',user__float,' ',user__char,' ',user__string)# printing value in given order
print(user__string,' ',user__char,' ',user__float,' ',user__int)# printing value in reverse order i.e string,char,float,int
- We have to correct the code provided in python as the output do not matches the expected.
- In the code that you have done, there is no need to comma separated spaces between the variables when you are printing them.
Just printing the values spaced by commas is enough ( No need of ' ' ).
Step by step
Solved in 3 steps with 2 images