Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    Python BirthDay Reminder(Simple code)

    Programming
    python
    4
    6
    1777
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thilina dilshan
      thilina dilshan last edited by

      dicts = {}

      while True:
      print("...Birth Day App...\n")
      print("1.Show Birth Days")
      print("2.Add Birth Days")
      print("3.Exit\n")

      choice = int(input("What is your choice:"))
      if choice == 1:
          if len(dicts.keys()) == 0:
              print("No Birth Days yet..\n")
          else:
              name = input("Enter friend's name:")
              birth_day = dicts.get(name, "No data found")
              print(birth_day,'\n')
      
      elif choice == 2:
          name = input("Enter name:")
          birth_day = input("Enter birth Day:")
          dicts[name] = birth_day
          print("Data Added\n")
      
      elif choice == 3:
          print("Thanks for using birth Day reminder app..")
          break
      else:
          print("Choose a valid option...\n")
      
      1 Reply Last reply Reply Quote 1
      • dev_lak
        dev_lak last edited by

        Pluwnnm python mula idl tutorial ekk dnna aluthin igen gnn ayata gdk wadagath wei

        thilina dilshan 1 Reply Last reply Reply Quote 0
        • thilina dilshan
          thilina dilshan @dev_lak last edited by

          @dev_lak issarahata balamu machn....

          dev_lak 1 Reply Last reply Reply Quote 1
          • root
            root Linux Help last edited by

            fatta. python supiri. mula idan danna

            1 Reply Last reply Reply Quote 0
            • dev_lak
              dev_lak @thilina dilshan last edited by

              @thilina-dilshan elaa

              1 Reply Last reply Reply Quote 0
              • P
                pasindu785 last edited by

                Cool job bro..

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                0
                Online

                3.6k
                Users

                1.3k
                Topics

                5.3k
                Posts

                • Privacy
                • Terms & Conditions
                • Donate

                © Copyrights and All right reserved Lanka Developers Community

                Powered by Axis Technologies (PVT) Ltd

                Made with in Sri Lanka

                | |