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
Let's get into some looping. Sometimes it is nice to generate your own data. Now let's take our first stab at it.
valkas [14]

Answer:

55

Explanation:

3 0
3 years ago
Which document lists the planned dates for performing tasks and meeting goals identified in the project plan?
Mnenie [13.5K]
<span>The document is called as Project schedule. this document contains the tasks that needs to be performed, the time that is given to the perform the task, the target dates. It also contains the budget of the project and the budget can be represented task wise. This helps in performing the project in a more organized way.</span>
5 0
3 years ago
Which email attachments are generally safe to open
ycow [4]

Answer:

i would suggest not opening ones that start with bit . ly

Explanation:

pls mark brainliest

3 0
2 years ago
Read 2 more answers
what is an open-source physical computing platform that can take input from a variety of switches or sensors to control physical
stepan [7]

An open-source physical computing platform that can take input from a variety of switches or sensors to control physical objects is known as Arduino.

Arduino means an electronics prototyping system is built to simplify microcontroller projects. The concept is to product these projects without having to know much about microcontrollers or programming, microcontrollers for dummies is one tips of explaining Arduino. Arduino has function to control of traffic lights, it can also be used for the real time control system with programmable timings, pedestrian lighting etc. Arduino can respond with buttons, LEDs, motors, speakers, GPS units, cameras, the internet, and even your smart-phone or your TV.

Learn more about Arduino at brainly.com/question/13098809

#SPJ4

4 0
1 year ago
You must create ____ before any of the other database objects.
hram777 [196]
You must create -tables- before any of the other database objects.
5 0
3 years ago
Other questions:
  • 1. Grouping Data in a Pivot Table can help you do what?
    5·1 answer
  • Briefly explain the following terms and concepts:
    8·2 answers
  • Most licensing agencies offer an orientation meeting for applicants who want to obtain licensing for a child care facility or a
    12·2 answers
  • A thin red border indicates the active cell. (True or False)
    12·1 answer
  • 2. Create a file with the follow integer/string content and save it as fun.txt. 6 fun. 3 hello 10 &lt;&gt; 2 25 4 wow! Write an
    14·1 answer
  • Why do bats sleep upside down
    7·1 answer
  • Did anyone do 5.7.5 Factorial on Code HS??<br><br><br><br> 20 POINTS
    9·1 answer
  • Which best describes how a supporting database will be structured?
    10·1 answer
  • Which structural semantic will this HTML code snippet form?
    13·1 answer
  • What keyword is used to declare a method in python?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!