Python Forum
phone number, to letters conversion
Thread Rating:
  • 3 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
phone number, to letters conversion
#5
(Dec-03-2018, 12:49 AM)hobbyprogrammer Wrote:
class klass:
    "docstring"
    def_int-self:
       self.attribute="var"
       if len (self.attribute)<2:
           pass
I'm not sure how you're running your program, but that's not valid, and you should be getting errors.

Let's talk style! Instead of...
print("");print("");print("This program will return all the letter conbinations")
print(                          "that are available on the modern phone")
print("You just type in a seven digit number and let the program display")
print("all the letter conbinations that make up that number  Enjoy");print("")
...try this!
docs = """This program will return all the letter conbinations
that are available on the modern phone
You just type in a seven digit number and let the program display
all the letter conbinations that make up that number  Enjoy"""

print(docs)
Reply


Messages In This Thread
RE: phone number, to letters conversion - by nilamo - Dec-03-2018, 07:59 PM

Forum Jump:

User Panel Messages

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