▲ 5 r/cs50

Feel like I used a workaround to pass a problem that borders cheating?

I was doing Week 7's youtube problem, and could not figure out how to pass the check for a typo. After about 10 minutes, I came up with the idea to have it return the input so I could look at the failure report and see what they are actually putting in and base my solution around that. This showed me that I they were replacing a "." with a "?" which told me immediately that I forgot a backslash.

Now that I have done that, I feel as though I sort of gamed the system and almost gave myself the answer. I was feeling angry because I felt that I should be able to see the tests so I know what I am trying to get around, but now that I actually did see the test I feel as though it makes the problems way too easy and I robbed myself of fixing the issue myself.

reddit.com
u/CK3helplol — 3 days ago
▲ 31 r/CK3AGOT

What does the paramount marriage AI even do?

Does it just make them prioritize marriages with vassals? I thought they would try to marry other lord paramount's kids and maybe focus on marrying within the Iron Throne's family, but they don't for the most part. Usually they just marry a random vassal, and not even a powerful one at that. Why would the first son of a paramount marry the 4th daughter of their #7th most powerful vassal before marrying a more powerful one or even another paramount's child 9/10? It happens ofc, but I feel like they should be focusing more on other paramount's and their liege on occasion.

reddit.com
u/CK3helplol — 8 days ago

What type of statistical understanding is required for a BA role?

I saw a post here while browsing around that was talking about the best qualities to have as a BA. A few said an understand of data and statistics is crucial and almost expected, but how far does that actually extend? I see people saying understanding the basics like mean, median, and mode is all you need, but I see others saying you need to essentially be a data analyst with regression and such. Where is the line actually drawn? Is it more so about being able to understand the stats/data and how the result came about, rather than the ability to actually do the work that created what you have in front of you?

reddit.com
u/CK3helplol — 15 days ago
▲ 31 r/statistics+1 crossposts

How to develop a solid foundation over a summer to learn regression analysis, starting from a very infantile understand of statistics?

I have taken multiple statistics classes over the last few semesters, and in about a years time I will be taking a data mining class. I'll be honest, I am having a lot of trouble with statistics. This summer I am practicing python, and this coming semester I have a class related to data analysis that I hope will give me more hands on experience with statistics through a medium I understand.

Next summer, though, I want to focus on SQL and statistical methods for prepare for future classes, particularly the data mining class which has a focus on regression analysis. I am taking a business analytics course right now, and I hardly understand what I am even reading off this online text book. What are some ways to learn that aren't reading huge blocks of text that I hardly understand that can allow me to grasp concepts better, or at least ones that might work.

I have found that reading a textbook on statistical subjects is not working for me. I understand the general subject matter to a degree, but once I run into a roadblock I find myself confused no matter how many times I reread, to the point of being unable to do practice problems in the first place. I am fully willing to dedicate several hours a day, for at least 2 months to this.

Are there courses I can take, akin to perhaps something like CS50? Any good youtube series that help me learn from the ground up that aren't just placating me and making me feel like I know what I am doing rather than actually being able to do the work? I am down for whatever might work.

Thank you!

reddit.com
u/CK3helplol — 16 days ago
▲ 4 r/cs50

questions about week 4 Little Professor

The assignment description has left me a bit confused. It breaks the assignment down into three functions. The 3rd of which is supposed to generate a single positive number, presumably returning it to the first function (main). This seems a bit strange to me.

for one, why do it one at at time? The way it is phrased makes me think they want me to run the generate_int function once, send the result to main, then call it again until you reach the 20 needed to create 10 equations. Or is it asking for it to generate a number once but repeat that 20 times and then send it to main? That is how I would approach this and I cant see the former being the right solution but I want to make sure.

As for sending the number/list to main, how do you send it without assigning main a positional argument?

For example:

main()

main calls level, giving no arguments

level()

generates level

level calls generate, giving the variable level for 1 argument.

generate(level)

generates a number or 20,

calls main with the variable/value of number/20 numbers/list, but main has no positional arguments to be assigned the variable/value. If I assign a positional argument to main, it will raise a TypeError as soon as the program runs as main starts the entire program.

reddit.com
u/CK3helplol — 22 days ago
▲ 0 r/cs50

Stuck in Grocery for week 3

I skipped it last night after half an hour because I was getting frustrated. Instead I did the next one which is outdated, and after finishing that I came back today and improved parts of it w/ the duck ai.

But now I am back to the Grocery.py. The most I can get is the input and breaking the loop and then I have no idea what to do. If recommends to use a dict instead of a list like I would want to, so I am inclined to do that instead so i can get some practice with it.

Unfortunately I can not figure out how to take an input and update the dict with it. I have tried several combos, and I just can not get it to update with a variable. My main idea right now is to add variable as a key to the list, and then update the value whenever it repeats to count the amount of the same entry. I do not want to use the duck before submission, but I am completely stuck and for some reason just can not wrap my head around how to approach this first part.

here is my last attempt, but I've tried every syntax combination I can think of for the list.update segment. Am I approaching this problem wrong?

def main():
    while True:
        try:
            item = input("Item: ")
            LIST.update(f"{item: 1}")
        except EOFError:
            print({LIST})
            break
main()
reddit.com
u/CK3helplol — 26 days ago
▲ 7 r/cs50

Feeling discouraged at how convoluted my code is

I was doing week 2 Coke machine, and eventually got it to pass the check. I then used the duck to ask how it could be improved, and then when i hit a wall i asked GPT to explain what the duck means in different terms. Eventually the code became so confusing that I gave up and just asked GPT for the solution to the issue I had ran into just so I could compare it to my original code and see the differences. It gave it to me, but also gave me an example of the same program but in a much more pythonic way.

I know I'm a beginner, but its sort of upsetting how much I am over doing it. For reference I've included my original code, and the chat gpt one it gave me at the end. I know this is like a coughing baby vs hydrogen bomb scenario in terms of understanding and ability, but it is hard not to beat myself up for spending like 4 hours on the problem and coming out with something that isn't very good and is way too long.

How can i think in a more streamlined manner, I suppose? I don't really know if that's actually the question I should be asking. Do I just need to hammer the first couple of weeks in to make sure I'm really understanding the material or something.

had to delete it because it violated honesty policy lol
reddit.com
u/CK3helplol — 1 month ago
▲ 1 r/cs50

Concerned about over reliance on da duck

So I am on week two and decided to knock out camel while I had time. I sat there with a bit of psuedocode/comments and looked at the hints, but I could just not figure out where to begin on the actual conversion segment of the code. I eventually just pasted what I had in the Duck and it gave me back enough to get me going, where I then was able to figure out the rest pretty easy.

However, I feel as though resorting to the Duck is robbing myself of the critical thinking steps needed to actually write code. This, however, raises the question of when to actually use the duck. I was stuck for a good 10 minutes, should I have just kept racking my brain over until something came up even if it never would?

For reference, here is a screenshot of the conversation and the code.

CODE SENT TO DUCK

"Where do I go from here"

# ask for camelcase input
# convert camelcase input
# print camel case output

def main():
    camelCase = input("camelCase: ")
    convert(camelCase)

# loop for every i (letter) is iterated over
# at every CAPITALIZATION, (if upper?), seperate into variables
# seperate each variable with _
# lower all letters
def convert(camelCase):
    for i in camelCase:
        print(i, end="")# ask for camelcase input

Duck Response:

https://preview.redd.it/lzonlpewr3dh1.png?width=380&format=png&auto=webp&s=b0f546d98df47e64d9aa62c0513fed2ed347eae0

I instantly recalled .isupper when he mentioned that a str method existed, so i was able to go to the documentation pretty much instantly and just searched for isupper to verify my memory.

I then wrote "If i is upper = insert_, print i.lower" in a doc to help me think abt the AI's 2nd comment, then while I went outside for a sec I thought of just adding "_" to the print. The actual code is all mines (except for the fact that I used the hint to get me thinking about loops, at first i wasn't even considering them. ) This is the result of this process.

def main():
    convert(input("camelCase: "))


def convert(camelCase):
    for i in camelCase:
        if i.isupper() == True:
            print("_", i.lower(), sep="", end="")
        else:
            print(i, end="")
    print()


main()

There are a few worst cases of this, especially for problem set 0 first problem and problem set 1 final problem where i was basically going back and forth with the AI. But essentially I want to know what exactly should I do in cases like this. I know the AI isn't cheating, but I feel scared that I am going to be a worst coder for asking it stuff like this.

reddit.com
u/CK3helplol — 1 month ago

Will cs50 python teach me the same stuff as the older edition of ATBS?

Just bought the (i think 2015 edition, whichever has the green top) for under 10 bucks on amazon. I know its free online, but i struggle to read large books on screens without zoning out. Is it worth it to go through cs50 and this book at the same time or cs50 then the book, or is it so much overlapping that I might as well skip the book?

reddit.com
u/CK3helplol — 2 months ago

What is the enemy count on requiem like?

I unistalled Loreim for Mages and Vikings because I heard that Requiem floods places with enemies. Now, however, I want to make sure im actually making the right decision based on this information.

I hate when games make things difficult by making damage sponge enemies all over the place, or swarming the player in places that make no sense. For example I've heard bleak falls barrow's main ​​chamber has like 30 enemies, which i dont mind as it makes sense for it to as a main quest final room. However, I could not stand it if every other random dungeon was like this, with a million enemies just because they need that many for the mode to be hard.

Whats the balance for this like in lore rim specifically if you know? ​

reddit.com
u/CK3helplol — 2 months ago

Quick question(s) about Lorerim ultra profile

For reference I have a Ryzen 7500x3d, 32 gb ddr5 ram, a 2060 super, and a 870 QVO samsung terabyte ssd.

I plan on getting a new GPU this week, and i was wondering about the VRAM needed to run the ultra profile. Currently it is maxing out my 8gb as soon as i boot the game up, but will 12 be enough? I am on a bit of a budget and plan on getting the gpu from facebook marketplace second hand like I did my ram, but even the cheapest good gpus are 400 at a minimum, usually more like 600-800.

As for the ram, it is eating it like crazy. I am maxed out at ram around and inside whiterun for example, even with firefox and other background applications closed. I also wonder about the ssd, it recommends a M.2, but will the current SSD i have be a bottleneck on performance or should I be ok? I am hoping for a steady 30 fps once everything is said in done at least, otherwise its looking like the default profile is the way to go.

reddit.com
u/CK3helplol — 2 months ago

Anything to tweak about this list?

https://pcpartpicker.com/list/y7z6rG

This is what I've chosen so far, it is a combination of parts I already have and new ones that I would need. Assume the 2060 is just a regular 2060 super I couldn't figure out how to get that on the list lol.

Some notes:

I currently have the power supply below. I had an R9, so this is the power supply I have but idk if it will be compatible with most builds nor if its recommended to use in the modern day

https://www.ebay.com/itm/363247032025

The hitachi isnt the same as well, but its the same specs. At least I dont think its the same, the pc took a shit a while ago and its put up so its a paint to pull it out just to see what type of hard drive i got.

I eventually plan on upgrading the GPU and CPU, but for now I need to just replace what may or may not be usable for the most part and I want a new case as the current one i got is ass for air flow.

reddit.com
u/CK3helplol — 3 months ago

Why does every Rainbow is Magic game have people leaving?

I've probably played close to a dozen matches. EVERY single one has one person leaving by the end of the 2nd round, causing the team with the first leave to lose. This has happened every single time, and except for once it has been on my team causing us to try hard every single time on a fucking event about stuffed animals and toys.

reddit.com
u/CK3helplol — 3 months ago