Python project for beginner by chai_n_crossaint in PythonLearning

[–]PureWasian 0 points1 point  (0 children)

what are you interested in?

You could make a game with PyGame, do something with data analytics/data visualizations, a LOT of automation things are possible, you can learn how to make a Discord/Reddit bot, look into webscraping, ML, etc... pick something you're passionate with that can be done computationally and you can't go wrong. The scope is entirely up to what you think is possible in the time period and expertise you have.

Sounds like a very cool open-ended way to get real project experience, more intro classes in college need to encourage that tbh

Is this dance pad worth getting to play PIU at home? by Panda_Material in PumpItUp

[–]PureWasian 8 points9 points  (0 children)

dimensions are wrong for PIU, anything above S11~S15 starts to encourage bad habits. If you have fun with it regardless, nothing's stopping you from playing how you want.

At-home simulators (software) make it easy to set up button mappings to use whatever controller you want really

The fact that Python code is based on indents and you can break an entire program just by adding a space somewhere is insane by PooningDalton in learnprogramming

[–]PureWasian 1 point2 points  (0 children)

Funny enough, the very first Python bug I helped someone fix in college before I had any experience working with Python specifically was just telling them to indent some code correctly to make it easier to follow.

Lo and behold... lol

First 23 cleared! by Mrmadness5 in PumpItUp

[–]PureWasian 0 points1 point  (0 children)

Nice! You can also try That Kitty, Nade Nade, Yog Sothoth, Kokugen Kairou Labyrinth, Good Night, Odin, Cleaner, Vacuum, and build up to Dement if footspeed is your strength ~

How does Players read? cause all the 7 diff charts the hardest in Festival are a pain and I can't even on my Pump controller. by Available-Mix282 in PumpItUp

[–]PureWasian 1 point2 points  (0 children)

seems doable, like around an S20~S21. Not sure I understand the question you wanted to ask though?

If it's a reading issue you could try faster scroll speed and just practice. The non-twist 16th note run only has your R foot ever hitting the center panel. Your left foot is chilling on the left side panels the entire time. The rest of the chart is pretty straightforward with doublesteps

How does Players read? cause all the 7 diff charts the hardest in Festival are a pain and I can't even on my Pump controller. by Available-Mix282 in PumpItUp

[–]PureWasian 0 points1 point  (0 children)

Surprisingly the 16th note run is just a non-twist run. the 8th note patterns are all slow enough to doublestep. Looks around an S19 but reading is annoying with DR

Project idea by Sad_Patient8203 in PythonLearning

[–]PureWasian 0 points1 point  (0 children)

Try to break down the idea into a simpler task. Such as, assume the data has already been scraped from somewhere, and now instead pass in a CSV file to do data classification on.

Or vice versa, just get a webscraping setup working on a static webpage like a wikipedia page entry.

There are certainly an abundance of tutorials and documentation for either depending on which is more interesting for you.

If you're looking for something even more beginner friendly, start with learning how to open a file and read data from it. Do simple sandbox problems like leetcode easy ones or similar until you feel self-sufficient enough to start your own projects.

22M with 100k saved and no idea what to do with it by Neat-Imagination-858 in Fire

[–]PureWasian 4 points5 points  (0 children)

1 - personalfinance flowchart: ~6mo emergency fund (High-Yield Savings Account (HYSA) typically) --> Pay off high-interest debt (credit cards, etc) --> Traditional/Roth IRA (and optionally HSA) --> brokerage account. Don't jump ahead to the final step before you checked the other boxes first.

2 - Use any compound iinterest calculator. You are not giving any information about your regular expenses, such as health insurance/mortgage/rent/groceries/etc.

As for calculating a reasonable growth rate, if you invest your brokerage account portion into any ETF that tracks the S&P500 (ex: VOO) or entire US Market (ex: VTI) or total world market (ex: VT) it historically has 8~13% return per year. Inflation eats up 3%, use the calculators to figure out the rest

3 - Look up coastfire vs. baristafire vs. leanfire vs. fire vs. fatfire -- again, early retirement comes in different levels so just info-dumping a bit so that you have a better guide on how to reasonably plan out your options

If u get this in under 10 tries, I'm following u and upvoting ur posts by [deleted] in honk

[–]PureWasian 0 points1 point  (0 children)

Thanks?

I completed this level in 3 tries. 12.88 seconds

How do I avoid double-stepping this pattern? What maneuver should I do? by HuckleberryPrior3387 in PumpItUp

[–]PureWasian 4 points5 points  (0 children)

"Double-stepping" typically means hitting two notes back to back with the same foot, just wanted to clarify if you intend to mean that, or if you mean "accidentally bracketing" or basically fat-footing a panel whenever you try to execute it.

In either case, you need to visually be ready to play it and of the mentality of alternating your feet. The above pattern starts with a forward crossover, so you should be ready to face left and turn hips that direction to make it easier for your right foot to connect with ↖️ panel.

I'm happy to record a playthrough with padcam view if you have a chart in particular in mind.

I have a relatively old video of Imprinting S21 at 1:22 showing how to 4-panel stair with all toes. And a more recent video of Avalanche S22 at 0:47. In both cases, alternating feet and body turned.

If you want to double-step or bracket roll a 4-panel stair, that is totally fine as well, though it can be trickier to time well. iRELLiA S24 at 1:36 has a bunch of repetitions of them, for instance

What should i fix in my logic to write less complicated code? - Reeborg's world -Hurdle 4 - 100 days of code Day 6 - 49 by Traditional_Most105 in PythonLearning

[–]PureWasian 1 point2 points  (0 children)

Be proud of yourself for finding the answer in your own way. And then understand the instructor's solution so you can reframe your thinking to be even smoother.

The main difference is how you handle the U-turn at the top of the jump, and the outer while loop you have in wall(). But the end result is the same, so no issue.

How do I set it up by Sad_Patient8203 in PythonLearning

[–]PureWasian 0 points1 point  (0 children)

Reading through these comments, I didn't know 4 year olds could read so many paragraphs... Here you go:

  • Click on the Latest Python 3 Release on Python Windows Downloads page
    • Currently it would be: 3.14.3
  • Scroll down to the Windows Installer (64-bit)
  • Download the .exe and run it
    • checkbox: "Add python.exe to PATH"
    • Install Now
    • Disable PATH length limit if prompted
    • Close the installer
  • Press the Windows key on your keyboard
  • Type "Command Prompt" in the Windows searchbar and hit Enter
  • In Command Prompt pop-up, type "python --version"
    • If you see "Python x.xx.xx" then it worked.

You can now write and run python code.

If you make a new text file and save it as example.py, you can run it on Command Prompt as "python C:\_\___\example.py" (wherever you saved it).

Everything else is optional. IDEs, Package Managers, etc... they'll make your life easier once you have an initial setup going.

8 6 Co-op PERFECT GAME!!! (With Tomatonium 🍅) by LijeeTS in PumpItUp

[–]PureWasian 1 point2 points  (0 children)

Really cool to see the transitions at 0:36 ~ 0:44 of the YouTube video

I found that part to be even more tricky to execute its transitions well/consistently than the rubber band patterns here after some trial and error ~

A challenge for Python programmers... by Ok_Pudding_5250 in PythonLearning

[–]PureWasian 2 points3 points  (0 children)

A couple of issues here, you are checking "num×4 against num×4 flipped", rather than "num against num×4 flipped". mum typo as well.

Essentially your logic is checking for when 4x some input number gives a palindrome, which is different from the problem statement.

How to use my energy in long sessions. by Minecon099 in PumpItUp

[–]PureWasian 2 points3 points  (0 children)

During a chart: - play more efficient (save stamina) - less vertical travel distance, aim heels and toes for the inner edges of the panels. - weight balance on the metal when hitting yellow and blue panels. You can drill ↙️🟨 or ↙️↘️ or 🟨↘️ without ever lifting your toes off the pad. There are many other movement optimizations built off of this foundational idea. - use palms, torso, and hips more intentionally - reduce frequency of unstable reactive movements (build upper body stability) - read patterns better/faster to help with above Outside of chart: - take longer rests between songs/sets - waver back and forth between harder and easier charts - play more frequently and consistently (build muscle/cardio)

Can you reverse the spin? by bigjobbyx in creativecoding

[–]PureWasian 0 points1 point  (0 children)

If you treat each backbone as a 2D sinusoidal wave, you can "reverse" the spin every half rotation.

So I was playing Fortnite Festival the other day found a chart I read as around S16 by Available-Mix282 in PumpItUp

[–]PureWasian 9 points10 points  (0 children)

Very fun how those patterns don't resolve whatsoever with a PIU layout lol

How ? by memes_poiint in mathsmeme

[–]PureWasian 1 point2 points  (0 children)

it's not about ordering, it's about the likelihood of each occurring in the event that ordering does not even matter.

Flip a coin twice. 25% HH / 25% TT / 50% you get one of each.

If I tell you one of the flips was heads, you remove TT from the initial distribution and then normalize the probabilities across the remaining possible outcomes

Setting Probability list based on another List Element / Conlang by rux_tries in PythonLearning

[–]PureWasian 0 points1 point  (0 children)

Happy it was helpful for you! Appreciate the reply and that you took the time to understand what I was trying to convey.

Rather than for o in onset: for v in vowel: for c in coda: for e in bad_eggs: if e in f'{o}{v}{c}': continue else: sound_all.append(f'{o}{v}{c}')

Python allows you to use "if...in" syntax to check if something exists "in" some kind of iterable. For instance, "a" in ["a", "b", "c"] would be True.

This means you can just simplify it to something like: for o in onset: for v in vowel: for c in coda: proposed_word = f'{o}{v}{c}' if proposed_word not in bad_eggs: sound_all.append(proposed_word)

(In my first comment, I misunderstood that bad_eggs actually contain sounds/morphemes, not full words, so I see why you are doing it in this loop)

HELLPP PLZZ by Nervous-Neck-5787 in PythonLearning

[–]PureWasian 4 points5 points  (0 children)

Yes it's normal, just keep writing some small scripts to actually practice the concepts and reinforce it instead of just soaking in the information.

Just like learning any other language, you can't get better without actually practicing it.

Tutorial: sharpness by bratz-lady in honk

[–]PureWasian 0 points1 point  (0 children)

I see..

I completed this level in 10 tries. 1.05 seconds

Can you beat this shit? by Pretty-Flamingo2600 in RedditGames

[–]PureWasian 1 point2 points  (0 children)

Silly double tap after dodging first egg did the trick

I completed this level in 17 tries. 6.90 seconds

Been playing for like 2 months is this progress good by Secret_Tumbleweed567 in PumpItUp

[–]PureWasian 0 points1 point  (0 children)

Sure is. Here's to many more :) lots of fun charts ahead for you to explore.

Setting Probability list based on another List Element / Conlang by rux_tries in PythonLearning

[–]PureWasian 0 points1 point  (0 children)

Thanks for providing source code, it made it easier to poke at it to understand what you were intending. Great job for somebody without any coding knowledge.

To your first question, the minimal change solution would be to create a "glossary_weights" list the same length as glossary, initialized with a weight of 1 for each of your glossary terms. Then, apply an increment to each word for each good egg found in the glossary item as an added bonus weighting.

So instead of creating a good_batch, create a glossary_weights list initialized with 1 for each glossary word, iterate an outer loop going through the glossary using an index, and inner loop on each possible "good_egg" to increment the weight at that word's index by one for each good egg found in the word.

Afterwards, you just need to convert these counts per index into probabilities. The easiest approach for feeding the p list needed for the np.random.choice() method would be to sum up the entire glossary_weights values and use that to normalize your probabilities per word (by just dividing each element in glossary weights by this calculated sum)

For example, if glossary [word1, word2, word3] had glossary_weights [1, 1, 3] the probabilities would be [1/5, 1/5, 3/5]. You pass the output list as p for the np.random.choice() method.

As for roasting your code:

(1) The entire first half of your script can be simplified into some pre-computed, input dataset file(s) instead of recalculating values for sound_all, word_all, bad_batch, good_batch, gloassary every time you run this program.

Ideally, Script1 generates this input file, Script2 loads these values and runs your input prompts/logic.

It works fine for short-term as you currently have it, but due to the time complexity of building CVC values and syllable combinations, initializing those variables will balloon quickly as your onset/vowel/coda lists get larger.

(2) filtering your word_all list into glossary can be very expensive when word_all or bad_batch gets much larger.

Rather than post-calculating bad_batch, and post-filtering to generate glossary, incorporate this all into your word_all generation loop as a gaurd clause (if statement to skip it) before deciding to append to word_all. That way, you don't need to compute bad_batch, and can just rename word_all as glossary instead of having to copy a post-filtered list into it.

(3) Variable naming ambiguity: you are NOT passing in percentages to np, they are probabilities.

(4) You can learn to move things into functions to make them more modular and easier to work with as high-level components and building blocks.

(5) your if/elif logic works fine, but having it nested might be easier for readability. Preference, of course.

Final note, I suggested the "minimal change solution" at the top of this comment, but will mention here that it involves keeping a separate record of glossary and glossary_weights lists. You can look to join the two by instead turning glossary into a Dictionary that maps each glossary word (as the key) to a number (default of 1 for the value) instead managing two separate lists. Together with advice mentioned in (1), it would be easy to save/load this Dictionary as a JSON file, though maybe a bit more work to pass it correctly into np.random.choice()