What will be the output of: a = input (“20”).
Answers
Any string of any length that you would Input, be it an empty one too.
Explanation:
Here,
'a' is a variable
input() is a function that asks the user for input.
input("20") is nothing but the prompt displays 20 just for the sake of denoting something for the user while asking for input. Here, 20 is just a forsake string, which is neither the input nor includes in the output.
a=input("20")
>>>20my name is ankitha and welcome to brainly!
#Here, "my name is ankitha and welcome to brainly!" is the input.
print(a)
my name is ankitha and welcome to brainly! ----> output
If you see the output, the things you have inputted got stored into the variable a, while "20" just acts as some indication like a comment to the user.
Learn more:
Raju has a square-shaped puzzle made up of small square pieces containing numbers on them. He wants to rearrange the puzzle by changing the elements of a row into a column element and column element into a row element. Help Raju to solve this puzzle
https://brainly.in/question/16956126
Write a Python function sumsquare(l) that takes a nonempty list of integers and returns a list [odd,even], where odd is the sum of squares all the odd numbers in l and even is the sum of squares of all the even numbers in l.
https://brainly.in/question/15473120