Simple contact book project in Python for beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024

ความคิดเห็น • 38

  • @Trinitysoftwareacademy
    @Trinitysoftwareacademy  ปีที่แล้ว +2

    github.com/ChristobelDiana/contact_book

  • @jaredoirere4746
    @jaredoirere4746 10 หลายเดือนก่อน +5

    You just a God sent. I got an A thanks to this video

  • @Doyourbest4245
    @Doyourbest4245 ปีที่แล้ว +3

    A part of me feels like I don’t accomplish anything if I have to follow along and not do it myself, but I still learn this way too.

    • @GoziePO
      @GoziePO 10 หลายเดือนก่อน

      how do you feel now? have you learned more?

  • @raynasharma7257
    @raynasharma7257 2 ปีที่แล้ว +3

    Great help....Thank u soo much

  • @A1bdullah123
    @A1bdullah123 4 หลายเดือนก่อน +1

    thanks you very much

  • @savarinathan1581
    @savarinathan1581 2 ปีที่แล้ว +2

    Nice,well explained.Congratulations.

  • @out2u1969
    @out2u1969 2 ปีที่แล้ว +3

    Very good video thanks. How can we print an extra value such as 'Company' so it prints out the key and then the 2 values. We would need another input I get that. Do we add the values as a list? Thanks

  • @stupossibleify
    @stupossibleify 2 ปีที่แล้ว +4

    Great video, thank you. Now can you show how to save the dictionary to a file so that it persists after the program quits?

  • @Mr_wolf162
    @Mr_wolf162 2 หลายเดือนก่อน +1

    Thank u

  • @khushishrivastav8871
    @khushishrivastav8871 8 หลายเดือนก่อน

    What we can use instead of format.get function for basic

  • @elishatech4600
    @elishatech4600 2 ปีที่แล้ว +2

    Thanks for posting

  • @elimasri1054
    @elimasri1054 ปีที่แล้ว +1

    Great video

  • @Moneyblueprint1
    @Moneyblueprint1 2 ปีที่แล้ว +1

    hi a question about the line of code "if not contact" why does it give an error if you would say "if not in contact"?

    • @Trinitysoftwareacademy
      @Trinitysoftwareacademy  2 ปีที่แล้ว +1

      not in- membership operator: used to test if a variable is present in the sequence

  • @Alaaja_aj
    @Alaaja_aj 2 ปีที่แล้ว +1

    Thank you mum

  • @hirrog3865
    @hirrog3865 2 ปีที่แล้ว +1

    Thank you for this

  • @umeshqatar
    @umeshqatar 2 ปีที่แล้ว +1

    How to append the entries in a file.?

  • @niloofarsabouri3682
    @niloofarsabouri3682 2 ปีที่แล้ว +1

    thankss

  • @sivasaikrishnasunkara1286
    @sivasaikrishnasunkara1286 2 ปีที่แล้ว +1

    Mam could you please provide documentation for this...

  • @martinkaspar5095
    @martinkaspar5095 ปีที่แล้ว +1

    can u add the code some where!?

    • @str.only1954
      @str.only1954 ปีที่แล้ว

      contact = {}
      def display_contact():
      print(contact.items())
      print("Name\t\tContact Number")
      for key in contact:
      print("{}\t\t{}".format(key,contact.get(key)))
      while True:
      choice = int(input(" 1. Add new contact
      2. Search contact
      3.Display contact
      4. Edit contact
      5. Delete contact
      6.Exit
      Enter your choice "))
      if choice == 1:
      name = input("enter the contact name ")
      phone = input("enter the mobile number")
      contact[name] = phone
      elif choice == 2:
      search_name = input("enter the contact name ")
      if search_name in contact:
      print(search_name,"'s contact number is ",contact[search_name])
      else:
      print("Name is not found in contact book")
      elif choice == 3:
      if not contact:
      print("empty contact book")
      else:
      display_contact()
      elif choice == 4:
      edit_contact = input("Enter the contact to be edited ")
      if edit_contact in contact:
      phone = input("enter mobile number")
      contact[edit_contact]=phone
      print("contact updated")
      display_contact()
      else:
      print("Name is not found in contact book")
      elif choice == 5:
      del_contact = input("Enter the contact to be deleted ")
      if del_contact in contact:
      confirm = input("Do you want to delete this contact y/n? ")
      if confirm =='y' or confirm =='Y':
      contact.pop(del_contact)
      display_contact()
      else:
      print("Name is not found in contact book")
      else:
      break

  • @POOJAYadaav-i5x
    @POOJAYadaav-i5x 3 หลายเดือนก่อน

    Error arha h code m

  • @prathmeshmulik3243
    @prathmeshmulik3243 2 ปีที่แล้ว

    Iska algorithm aur flowchart kaha pr milega