What is the task of the following Python program? Hint: Test it with your name (or a short name) as the input. #function
Posted: Thu Jul 14, 2022 2:17 pm
What is the task of the following Python program? Hint: Test it with your name (or a short name) as the input. #function definition def f (mystring): s="n for letter in myString: s= letter +s return s #main program myName = input("Enter your name: ") print(f(myName)) It displays the value of myName. It displays the value of myName, one obaracterehifted to the rieht
What is the task of the following Python program? Hint: Test with values for a and b. a= int (input("Enter a number:")) b= int(input("Enter a number:")) a=a+b b=a−b a=a−b The program swaps the values of a and b. The program calculates the sum and difference of a and b correctly. The program raises an error. none of the above
What is the task of the following Python program? Hint: Test with values for a and b. a= int (input("Enter a number:")) b= int(input("Enter a number:")) a=a+b b=a−b a=a−b The program swaps the values of a and b. The program calculates the sum and difference of a and b correctly. The program raises an error. none of the above