from person import Person


def go(db):
    global status
    while status == 1:
        inputText = input("command>")
        for i in commands:
            if inputText == i:
                commands[i](db)

def helpMe(db):
    print("help:")
    for i in commandsHelp:
        print(i, ":",  commandsHelp[i])

def add(db):
    print("add")

    firstName = input("firstName:")
    secondName = input("secondName:")
    birthdayDate = input("birthdayDate:")
    namedayDate = input("namedayDate:")
    mail = input("mail:")
    telNumber = input("telNumber:")
    facebook = input("facebook:")
    group = input("group:")

    newPerson = Person(firstName, secondName, birthdayDate,namedayDate, mail, telNumber, facebook, group)

    db.add(newPerson)

def showDb(db):
    for index in db.db:
        print(index)

def quit(db):
    global status
    status = 0

status = 1
commands = {"h": helpMe, "a": add, "q": quit, "l": showDb}
commandsHelp = {"h": "help for command help", "a": "help for command add", "q": "help for command quit"}

from person import Person


def go(db):
    global status
    while status == 1:
        inputText = input("command> ")
        for i in commands:
            if inputText == i:
                commands[i](db)

def helpMe(db):
    print("help:")
    for i in commandsHelp:
        print("\t", i, ":",  commandsHelp[i])

def add(db):
    print("add")

    firstName = input("\tfirstName: ")
    secondName = input("\tsecondName: ")
    birthdayDate = input("\tbirthdayDate: ")
    namedayDate = input("\tnamedayDate: ")
    mail = input("\tmail: ")
    telNumber = input("\ttelNumber: ")
    facebook = input("\tfacebook: ")
    group = input("\tgroup: ")

    newPerson = Person(firstName, secondName, birthdayDate,namedayDate, mail, telNumber, facebook, group)

    db.add(newPerson)

def showDb(db):
    for index in db.db:
        print(index)

def quit(db):
    global status
    status = 0

status = 1
commands = {"h": helpMe, "a": add, "q": quit, "l": showDb}
commandsHelp = {"h": "help for command help", "a": "help for command add", "q": "help for command quit"}

Add whitespaces to print it better.
Add whitespaces to print it better.

Signed-off-by: Matej Dujava <03ce64f61b3ea1fda633fb2a103b989e3272d16b@gmail.com>

  from person import Person
  
  
  def go(db):
      global status
      while status == 1:
-         inputText = input("command>")
+         inputText = input("command> ")
          for i in commands:
              if inputText == i:
                  commands[i](db)
  
  def helpMe(db):
      print("help:")
      for i in commandsHelp:
-         print(i, ":",  commandsHelp[i])
+         print("\t", i, ":",  commandsHelp[i])
  
  def add(db):
      print("add")
  
-     firstName = input("firstName:")
+     firstName = input("\tfirstName: ")
-     secondName = input("secondName:")
+     secondName = input("\tsecondName: ")
-     birthdayDate = input("birthdayDate:")
+     birthdayDate = input("\tbirthdayDate: ")
-     namedayDate = input("namedayDate:")
+     namedayDate = input("\tnamedayDate: ")
-     mail = input("mail:")
+     mail = input("\tmail: ")
-     telNumber = input("telNumber:")
+     telNumber = input("\ttelNumber: ")
-     facebook = input("facebook:")
+     facebook = input("\tfacebook: ")
-     group = input("group:")
+     group = input("\tgroup: ")
  
      newPerson = Person(firstName, secondName, birthdayDate,namedayDate, mail, telNumber, facebook, group)
  
      db.add(newPerson)
  
  def showDb(db):
      for index in db.db:
          print(index)
  
  def quit(db):
      global status
      status = 0
  
  status = 1
  commands = {"h": helpMe, "a": add, "q": quit, "l": showDb}
  commandsHelp = {"h": "help for command help", "a": "help for command add", "q": "help for command quit"}
  
Add whitespaces to print it better.
## Code Before:
from person import Person


def go(db):
    global status
    while status == 1:
        inputText = input("command>")
        for i in commands:
            if inputText == i:
                commands[i](db)

def helpMe(db):
    print("help:")
    for i in commandsHelp:
        print(i, ":",  commandsHelp[i])

def add(db):
    print("add")

    firstName = input("firstName:")
    secondName = input("secondName:")
    birthdayDate = input("birthdayDate:")
    namedayDate = input("namedayDate:")
    mail = input("mail:")
    telNumber = input("telNumber:")
    facebook = input("facebook:")
    group = input("group:")

    newPerson = Person(firstName, secondName, birthdayDate,namedayDate, mail, telNumber, facebook, group)

    db.add(newPerson)

def showDb(db):
    for index in db.db:
        print(index)

def quit(db):
    global status
    status = 0

status = 1
commands = {"h": helpMe, "a": add, "q": quit, "l": showDb}
commandsHelp = {"h": "help for command help", "a": "help for command add", "q": "help for command quit"}

## Instruction:
Add whitespaces to print it better.
## Code After:
from person import Person


def go(db):
    global status
    while status == 1:
        inputText = input("command> ")
        for i in commands:
            if inputText == i:
                commands[i](db)

def helpMe(db):
    print("help:")
    for i in commandsHelp:
        print("\t", i, ":",  commandsHelp[i])

def add(db):
    print("add")

    firstName = input("\tfirstName: ")
    secondName = input("\tsecondName: ")
    birthdayDate = input("\tbirthdayDate: ")
    namedayDate = input("\tnamedayDate: ")
    mail = input("\tmail: ")
    telNumber = input("\ttelNumber: ")
    facebook = input("\tfacebook: ")
    group = input("\tgroup: ")

    newPerson = Person(firstName, secondName, birthdayDate,namedayDate, mail, telNumber, facebook, group)

    db.add(newPerson)

def showDb(db):
    for index in db.db:
        print(index)

def quit(db):
    global status
    status = 0

status = 1
commands = {"h": helpMe, "a": add, "q": quit, "l": showDb}
commandsHelp = {"h": "help for command help", "a": "help for command add", "q": "help for command quit"}
