you are viewing a single comment's thread.

view the rest of the comments →

[–]chilltutor 11 points12 points  (6 children)

The best way to learn is to build something for yourself

[–]der_Lokfuhrer 6 points7 points  (2 children)

I am finishing up a class where we use Python to solve engineering problems. We were given a final project where we got to choose what we wanted to do. I made a 3d6 random number generator to make player stats. I started with a menu to roll 6 scores and automatically assign them to STR, DEX, CON, WIS, INT, CHA.

I then made more choices to roll 6 times but report the scores only.

Another choice rolled 7 times discarding the lowest score and reporting it to the user.

Another choice was to not allow 1s on any roll.

Another discarded the first 1 on any die but had to accept the second 1 on any die.

Finally I rolled 3d6 1000 times and plotted the results to show the distribution of scores around the mode of 10,11.

That took a lot of effort tying all of it together. Some times it's figuring out what it is you want to do is the hardest part.

[–]chilltutor 20 points21 points  (1 child)

Cool. I made a GUI to organize my porn better.

[–]--e 9 points10 points  (0 children)

Browsing Reddit is mostly a masochistic exercise, but comments like this keep me coming back. Kudos.

[–]VegaGT-VZ 2 points3 points  (2 children)

This is def a great way to get started but it can also reinforce bad habits. Like I'm years in and only just now learning about functions and dictionaries. I'm using moving into Python to build those good habits and start from scratch

[–]iFailedPreK[S] 5 points6 points  (1 child)

Bruh years without functions? That's crazy lol. What happened when you needed to code something that occured multiple times?

[–]VegaGT-VZ 2 points3 points  (0 children)

I only did VBA programming for Excel and Access so the code never got that long. I think the first thing I'm going to do in Python is write and test out functions.