@1:26:24, yes! I know/get what you are doing 😂 Your train of thought was exactly mine.
@cattelia Жыл бұрын
I'll just reply to my own comment so I don't spam everywhere. You're currently working through how you want to do the percentages and you said that you might have to loop through the numbers again and how, "It seems like a waste." XD You do not know how much this thought process means to me. I thought I was going crazy with how I was going about this challenge. Truly wonderful stuff here!
@okindaderrick5863 жыл бұрын
your videos are just awesome, continue helping beginners like me
@ingluissantana3 жыл бұрын
Nice to see as a beginner (that i am) how you attack the problem :) Thanks a loooooootttttt!!!!!!!!!!
@ianzdanowsky83552 жыл бұрын
Just starting this one too, thanks!
@denisaturkova62043 жыл бұрын
Awesome videos. Learnt a lot. At 1:09:00 how did you test it in replit? (the percentage)? It only let me to run the entire code i put there
@FaradayAcademy3 жыл бұрын
I was just running the budget.py file directly because I had the create_spend_chart([]) function call on line 70 instead of running the whole test file.
@codestudio4973 жыл бұрын
thank you for this video , i don't why transfer method instructions has nothing to do with the test module , test module is expecting normal stuff but the in instructions they are asking to add withdraw with amount and description other one add deposit with amount of the budget category with description , on test module they are expecting to - to the transfer amount and remove - on another expect , thats all
@codecage93333 жыл бұрын
Why not correct and finish the __repr__ function before jumping on the create_spend_chart function?
@FaradayAcademy3 жыл бұрын
I went back and did repr at the end
@lionelmcadams21282 жыл бұрын
hey, thanks for this Gwen, are there any libraries i need to import? for example, I'm getting underlines on the these two lines, i'm getting the lightbulb. what do i do? food = Category("Food") entertainment = Category("Entertainment")
@antsmith32842 жыл бұрын
Would it be possible to do an app like Venmo? If it's too complex, can you possibly do a simple version of it? I'm very curious to see how it works.
@codecage93333 жыл бұрын
I almost feel like I'm watching myself stumble through this. At least she isn't making quite as many mistakes as I am. And talk about jumping in and coding with out any preparation! But maybe that is the point.
@FaradayAcademy3 жыл бұрын
Yeah, I wanted to show these projects end to end. So I didn’t really look at it first. I tried to figure everything out live. Sorry if that was confusing.
@codecage93333 жыл бұрын
@@FaradayAcademy Thanks a lot for the reply Gwen! I am actually enjoying this video since I am not a professional programmer and trying to follow a video that is so polished that no mistakes are ever made, makes it difficult to follow. At least for me anyway. As of this reply, I have been sidelined on another project, but will get back to your video soon, and will follow it to the end. Thanks for all you are doing to help us armchair programmers!😎
@f1230063 жыл бұрын
hi from Taiwan🇹🇼
@NightBird09013 жыл бұрын
Hello
@ASIFAlI-lq4rd3 жыл бұрын
I really hate white background... before I was come here to watch this but now I won't.... cause you know
@icognitorinsewashcheeto6022 Жыл бұрын
this fixes the category lettering def create_spend_chart(categories): s = "Percentage spent by category " total = 0 cats = {} for cat in categories: cat_total = 0 for item in cat.ledger: amount = item["amount"] if amount < 0: total += amount cat_total += amount cats[cat.name] = abs(cat_total) total = abs(total) for key, val in cats.items(): percent = (val / total) * 100 cats[key] = percent for n in range(100, -1, -10): s += f"{str(n)+'|':>4}" for val in cats.values(): if val >= n: s += " o" s += " " L = len(cats.values()) s += f" {(L*3+1) * '_'} " i = 0 while True: temp_str = "" for key in cats.keys(): if i < len(key): temp_str += key[i] else: temp_str += " " i += 1 if temp_str.strip() == "": break s += f" {temp_str} " print(s)