1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mrac [35]
3 years ago
8

Write a Python function that will accept as input three string values from a user. The method will return to the user a concaten

ation of the string values in reverse order. The function is to be called from the main method.
Computers and Technology
1 answer:
Aleks04 [339]3 years ago
5 0

Answer:

Following are the program in python language

def cat_rev(x,y,z): # function definition  

   x=x[::-1]# reverse the first string  

   y=y[::-1]# reverse the second string  

   z=z[::-1]# reverse the third string  

   z=x+y+z;  #concat the string

   return(z)#return the string

   #main method

s=input("Enter the first string:") #read the first string

r=input("Enter the second string:")#Read the second string  

t=input("Enter the third string:")#Read the third string by user

rev1= cat_rev(s,r ,t ) #function calling

print(rev1)# display reverse string

Output:

Enter the first string:san

Enter the second string:ran

Enter the third string:tan

nasnarnat

Explanation:

Following are the description of program

  • In the main function we read the three value by the user in the "s", "r" and "t" variable respectively.
  • After that call the function cat_rev() by pass the variable s,r and t variable in that function .
  • Control moves to the function definition of the cat_rev() function .In this function we reverse the string one by one and concat the string by using + operator .
  • Finally in the main function we print the reverse of the concat string   .

You might be interested in
2.1. The stream cipher described in Definition 2.1.1 can easily be generalized to work in alphabets other than the binary one. F
nekit [7.7K]

Answer:

See attached image

Explanation:

7 0
4 years ago
50 POINTS PLEASE HELP MEEEEEEEEE!!!!!!
Zolol [24]

The answer is A for 1. And C for 2.

Hope this helps.

3 0
4 years ago
Read 2 more answers
It is not free to manage the settings of your wiki (true or false)​
jek_recluse [69]

Answer:

shuush

Explanation:

u r a shmaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaak

5 0
3 years ago
The section of the Telecommunications Act that attracted the most attention was the one calling for the creation of ______, whic
jekas [21]

Answer:

the V-chip

Explanation:

8 0
3 years ago
What is the purpose of the ISOWEEKNUM function
stellarik [79]

Answer:

Explanation:

The ISOWEEKNUM Function in Excel is a Date & Time Function. This cheat sheet covers 100s of functions that are critical to know as an Excel analyst used for finding out the ISO week number of the year for the given date value (e.g., week number 37 of 52 weeks in a year). The function was introduced in MS Excel 2013.

7 0
3 years ago
Read 2 more answers
Other questions:
  • Write a unit test for addInventory(). Call redSweater.addInventory() with parameter sweaterShipment. Print the shown error if th
    9·2 answers
  • You are going to send a document to a client, and you want to be absolutely sure that none of the
    8·1 answer
  • Brandon purchased a new processor online as an upgrade. When he purchased the processor, he made sure that it used the same sock
    14·1 answer
  • How to use command prompt​
    14·1 answer
  • Before you enable data deduplication, what tool can you use to determine if data deduplication would benefit the tested volumes
    11·1 answer
  • Error: 404 Not Found <br>The resource that you requested does not exist on this server.
    14·2 answers
  • Write a compound inequality that is represented by the graph.
    14·1 answer
  • Suppose that the following elements are added in the specified order to an empty binary search tree: Lisa, Bart, Marge, Homer, M
    5·1 answer
  • __________ is a term used to indicate any unwanted event that takes place outside normal daily security operations. This type of
    11·1 answer
  • What is the purpose of each component ?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!