configuration file handling in python | Lec-24

In this video, I have talked about the fundamentals of programming and Python. If you complete this, you will be well-versed in using tuples for different use cases.
Directly connect with me at:- topmate.io/manish_kumar25
Discord channel:- / discord
For more queries reach out to me on my below social media handle.
Follow me on LinkedIn:- / manish-kumar-373b86176
Follow Me On Instagram:- / competitive_gyan1
Follow me on Facebook:- / manish12340
My Second Channel -- / @competitivegyan1
Interview series Playlist:- • Interview Questions an...
My Gear:-
Rode Mic:-- amzn.to/3RekC7a
Boya M1 Mic-- amzn.to/3uW0nnn
Wireless Mic:-- amzn.to/3TqLRhE
Tripod1 -- amzn.to/4avjyF4
Tripod2:-- amzn.to/46Y3QPu
camera1:-- amzn.to/3GIQlsE
camera2:-- amzn.to/46X190P
Pentab (Medium size):-- amzn.to/3RgMszQ (Recommended)
Pentab (Small size):-- amzn.to/3RpmIS0
Mobile:-- amzn.to/47Y8oa4 ( Aapko ye bilkul nahi lena hai)
Laptop -- amzn.to/3Ns5Okj
Mouse+keyboard combo -- amzn.to/3Ro6GYl
21-inch Monitor-- amzn.to/3TvCE7E
27-inch Monitor-- amzn.to/47QzXlA
iPad Pencil:-- amzn.to/4aiJxiG
iPad 9th Generation:-- amzn.to/470I11X
Boom Arm/Swing Arm:-- amzn.to/48eH2we
My PC Components:-
intel i7 Processor:-- amzn.to/47Svdfe
G.Skill RAM:-- amzn.to/47VFffI
Samsung SSD:-- amzn.to/3uVSE8W
WD Blue HDD:-- amzn.to/47Y91QY
RTX 3060Ti Graphic card:- amzn.to/3tdLDjn
Gigabyte Motherboard:-- amzn.to/3RFUTGl
O11 Dynamic Cabinet:-- amzn.to/4avkgSK
Liquid cooler:-- amzn.to/472S8mS
Antec Prizm FAN:-- amzn.to/48ey4Pj

Пікірлер: 12

  • @AmitSingh-qk4bb
    @AmitSingh-qk4bb2 ай бұрын

    Nice sir i have got selected in lti by watching ur spark series thanku and keep going and growing 😊

  • @Aman-lv2ee
    @Aman-lv2eeАй бұрын

    nice video

  • @PranshuHasani
    @PranshuHasani2 ай бұрын

    def cost(student_id): subjects = student_details.get(student_id) total_cost = 0 for subject in subjects: if subject in config["book_store"]: book_cost = int(config["book_store"][subject]) total_cost += book_cost return total_cost def cost_of_books(student_id): subjects = student_details.get(student_id) if len(subjects) >= 2: result = cost(student_id) final_cost = result - (result*0.1) else: final_cost = cost(student_id) return final_cost Is this the correct way Manish??

  • @raviyadav-dt1tb
    @raviyadav-dt1tbАй бұрын

    How many lecture left in python?? Can you please tell us Manish ji thank you ❤

  • @manish_kumar_1

    @manish_kumar_1

    Ай бұрын

    To be honest even I don't know

  • @ankitdhurbey7093
    @ankitdhurbey70932 ай бұрын

    Que 2(b): def calculate_cost(students): cost = {} discount_cost = {} for id, books in students.items(): books_cost = [] for book in books: books_cost.append(int(config["books")[f"{book}"])) cost[f"{id}"] = books_cost for id, money in cost.items(): if len(cost[f"{id}")) >= 2: discount_cost[f"{id}"] = sum(money) - (sum(money) * .1) else: discount_cost[f"{id}"] = sum(money) return discount_cost

  • @ankitdhurbey7093

    @ankitdhurbey7093

    2 ай бұрын

    It took me 1 hr to complete this question, how can i improve my logic building ability

  • @manish_kumar_1

    @manish_kumar_1

    2 ай бұрын

    You are going good Ankit. Almost 200 people watched the video and only you gave the solution. So you are already ahead of many people, initially it takes time but after sometime you will start increasing the productivity. But to reach till there you will have to start from somewhere, which you have already done

  • @muktanandzarapkar5841
    @muktanandzarapkar5841Ай бұрын

    I tried from my side import configparser config=configparser.ConfigParser() config.read(r"C:\Users\Downloads\testconfig.ini") def bookcost(arg): total=0 for i in arg: marks=float(config['default'][i]) total+=marks return total subject_list=["math","science","history","Geography"] student_details={1:["math","science"],2:["math","science","history"],3:["Geography"]} def studentcost(student_id): subjects = student_details.get(student_id) if len(subjects) >= 2: result = bookcost(subjects) final_cost = result - (result*0.1) else: final_cost = bookcost(subjects) return final_cost final_cost=studentcost(1) print(final_cost)