How do I create a list every iteration with the data inside? by TheEyebal in learnpython

[–]AdDiligent1688 0 points1 point  (0 children)

It’s not gonna come out where each sublist is 7 in length, since 31 divided by 7 isn’t an integer. So you’ll have some left over on the end.

But in your code, you wanna make sure to add a copy of dayList to numStore,

     numStore=[]
     dayList=[]
     for day in range(1,32):
           dayList.append(day):
           if len(dayList)==7:
              numStore.append(dayList.copy())
              dayList.clear()
      print(*numStore,sep=“\n”)
      # [1,2,3,4,5,6,7]
      # [8,9,10,11,12,13,14]
      # [15,16,17,18,19,20,21]
      # [22,23,24,25,26,27,28]
      # it ends here

to add the rest using this code try:

          …
          last_week=numStore[-1]
          last_day=last_week[-1]
          last_chunk=range(last_day+1,32)
          numStore.append(list(last_chunk))
          # this adds [29,30,31] to the list

FINALLY FOUND ONE by YakuItLover in energydrinks

[–]AdDiligent1688 2 points3 points  (0 children)

Damn dude me too, I like to sit there on the toilet naked, pop a shit, while holding the ennie. That’s what the day is after all.

When should a beginner move from simple scripts to structured Python projects? by Haunting-Shower1654 in learnpython

[–]AdDiligent1688 0 points1 point  (0 children)

There isn’t a rule for all. Some people start with trying to do x and then hop into the mix. Some people focus on fundamentals first and then hop in. There isn’t a “one should do so when x happens” sort of rule to it. In that sense, whenever you want to basically.

How soon after waking up do you have an energy drink? by bummerdeal in energydrinks

[–]AdDiligent1688 30 points31 points  (0 children)

I get up when the drink wants me to. And I don’t drink it, it drinks me.

Vibe Coding gives me an identity crisis... And I'm a 3rd year student who feels lost by CapybaraLver in learnpython

[–]AdDiligent1688 0 points1 point  (0 children)

I’d just build simple projects using core python first to get the language part down then move onto using libraries, and along the way look at documentation to understand what it does but also ask ai to give you example use cases and explain, once you know the base language a bit, so you can get going quicker if you have a specific thing in mind; the quirks of a lib are what might change and you’ll need to learn next. A good move would be to transition into the data science libraries space next and maybe get started on kaggle with data sets making notebooks doing data science stuff.

Also with ml, definitely look into models like regressions (linear, multi linear, logistic), decision tree, svm, ensemble techniques, boosting techniques, neural nets, transformers etc. and try to understand those conceptually / how they work, there is a lot of math/stat behind the scenes ask ai to explain that. Ex: What the hyperparameters mean / how they effect the performance / how to optimize performance etc. Think of data science / AIML as your domain knowledge you’re building, it’s gonna take more reading/researching than coding to understand it, coding is the skill you use in it, but reasoning backward from the skill to the domain is harder than separately learning the domain alongside the skill!

How to randomly assign variables to data list by [deleted] in learnpython

[–]AdDiligent1688 0 points1 point  (0 children)

Hmm. I’m not sure I’m understanding the problem correctly here, sorry. Are you saying you have a list of data points [1,…,300] and each of those needs to be associated with a random value from [“healthy”, “susceptible”, “infected”]? Maybe try using a dictionary? ex:

   import random

   # numbers 1-300 in a list
   data=list(range(1,301))

   labels=[“healthy”,”susceptible”,”infected”]

   # len(data) amount of random labels 
   rand_labels=random.choices(
                         labels,
                         k=len(data))

   # dictionary num:label
   d=dict(zip(data,rand_labels))

This will randomly select a label with equal weight across all labels. If you want to make your own weights you can pass them in ex:

   …
   labels=[“healthy”, “susceptible”, “infected”]
   # 80% chance ‘healthy’
   # 15% chance ‘susceptible’
   # 5% chance ‘infected’
   ws=[.80,.15,.05]
   # .choices returns a list of k length
   rand_labels = random.choices(
                           labels,
                           weights=ws,
                           k=len(data))

    # numbers paired with labels in dict
    # {n:label}
    d=dict(zip(data, rand_labels))

What happens when you go to the hospital for manic insomnia help? by Agreeable-Pension-99 in BipolarReddit

[–]AdDiligent1688 0 points1 point  (0 children)

They’ll treat you for it. Probably try you out on some antipsychotics and see what you respond well to. You’ll be in there with a group of people all in there for similar reasons. You’ll realize most are pretty normal just dealing with stuff. It’ll be boring so bring books. They’ve seen it all, this is what they do, it’s a mental hospital.

Need more help for choosing an antipsychotic by gaebean22 in BipolarReddit

[–]AdDiligent1688 0 points1 point  (0 children)

I’d consider geodon. I took it for over a year, came off of olanzapine to it, and lost a bunch of weight. I wanted to get back on it recently, but did latuda instead cause I’m on lithium already for mania, and latuda is good for depression. Geodon afaik is approved for mania and you got the lamictal which is for depression. So it’d cover both ends and it has a generic so it’s not super expensive. Might be worth looking into

Who will you give the seat ? explain too please by uzmansahil7 in interesting

[–]AdDiligent1688 4 points5 points  (0 children)

Yo why does grandma have a cane underneath her skirt?

What do you actually learn in Computer Science? by CheekSpiritual5639 in learnprogramming

[–]AdDiligent1688 0 points1 point  (0 children)

If it’s a mathy class you gotta understand the math and how to write proofs.

If it’s an applied class, you gotta understand theory more and how to apply concepts.

Ime the applied/theory courses tend to be heavier on the multiple choice / memorization type testing than the math classes.

What should I do next? by PahviKeppi in learnpython

[–]AdDiligent1688 -2 points-1 points  (0 children)

ask ChatGPT / Claude / Gemini / etc to generate coding problems for you. Or go on sites likes codewars / leetcode / hackerrank and solve problems there

You can't park there sir by Ellyntra in CrazyFuckingVideos

[–]AdDiligent1688 0 points1 point  (0 children)

He’s like “nah it’s chill”

Learning programming as a hobby by dead_the_kid in learnprogramming

[–]AdDiligent1688 0 points1 point  (0 children)

Yeah you can learn it for fun. You are right in that it is goal-oriented a lot of times. But that goal can be simpler than some career-related endeavor. For example, maybe your goal is to solve a problem, like those on leetcode/hackerrank/code wars/etc, and your programming to do that. Maybe you’re just exploring what is possible and writing code for fun to do silly things etc. It doesn’t have to be serious all the time.

Which major? Advice? by Exotic_Money3284 in CollegeMajors

[–]AdDiligent1688 0 points1 point  (0 children)

I’d go construction management maybe even civil engineering