Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Program: bookstore()
#1
## Program: create new function bookstore()
create and test function bookstore()
- **bookstore() takes 2 string arguments: book & price**
- **bookstore returns a string in sentence form**
- **bookstore() should call title_it_rtn() #it is a function previously defined# ** with book parameter
- **gather input for book_entry and price_entry to use in calling bookstore()**
- **print the return value of bookstore()**
>example of output: **Title: The Adventures Of Sherlock Holmes, costs $12.99**
^^
^
^previous code:
def title_it_rtn(c):
    return (c).title()
_input= input()
title_it_rtn(_input)
print(title_it_rtn(_input))
i cant code it. help!!!!!
Reply


Messages In This Thread
Program: bookstore() - by muza - Apr-15-2020, 04:23 AM
RE: Program: bookstore() - by ndc85430 - Apr-15-2020, 04:47 AM
RE: Program: bookstore() - by muza - Apr-15-2020, 04:52 AM
RE: Program: bookstore() - by ndc85430 - Apr-15-2020, 04:55 AM
RE: Program: bookstore() - by muza - Apr-16-2020, 01:30 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020