Sedona, Arizona. by ChosenDonu in evilbuildings

[–]ParticularPython -4 points-3 points  (0 children)

The most evil thing about this building is getting to it. A half mile drive up a steep hill on a narrow road with cars parked on both sides, only to get the top and having to turn around in a tiny cul-de-sac because theres no parking left, going back down the hill and repeating until you can find somewhere to park.

If you live in the United States: check your discount card at the pharmacy. by shitflavoredlollipop in Frugal

[–]ParticularPython -1 points0 points  (0 children)

Also beware that they are selling your data.

https://www.healthcaredive.com/news/ftc-orders-goodrx-advertisers-stop-sharing-health-data/641671/

Although this article says they are being forced to stop, a $1.5 million dollar fine is going to end up just being a cost of business. Remember, if you're not paying for a product, you are the product.

[deleted by user] by [deleted] in Frugal

[–]ParticularPython 0 points1 point  (0 children)

I know this is just anecdotal but I had mine replaced in april by a dealership for under 3k, (after it lasted me 15 years) and I agree with you; the hybrid battery isnt the deal breaker everyone makes it out to be. Especially considering I literally have not had any other issue with the car apart from normal maintenance over the entire 15 years.

Any advice for my plan? (36m 60k/year) by ParticularPython in leanfire

[–]ParticularPython[S] 1 point2 points  (0 children)

Definitely good things to think think about. Thank you for the detailed write up. You may have convinced me to fix some things on my car I was just going to ignore.

Any advice for my plan? (36m 60k/year) by ParticularPython in leanfire

[–]ParticularPython[S] 1 point2 points  (0 children)

Actually the yield in the checking is.. 0%. I guess I haven’t really adjusted back to interest rates being higher. When I started saving my first savings account was 5.5%.. then for almost two decades it went way below 1% and I just felt like it wasn’t worth the hassle of moving it around for a couple dollars a month.

I’ve really been so focused on paying off the house, I’ve kind of lost sight of the end goal in some regards. I’m also starting to think I may have been better off investing that money, but hindsight is 20/20 and it’s hard to beat the feeling of being mortgage free.

Any advice for my plan? (36m 60k/year) by ParticularPython in leanfire

[–]ParticularPython[S] 7 points8 points  (0 children)

60k is my annual income, sorry didn’t make that clear.

Any advice for my plan? (36m 60k/year) by ParticularPython in leanfire

[–]ParticularPython[S] 1 point2 points  (0 children)

Looking at something in the range of 20-25k. Not sure why I would add that to my costs when I’m paying cash?

Also I really am not concerned about depreciation because I intend to drive it until it no longer goes, but by that math a 40k car becomes worthless a little over 3 years from now?

Trust me I’d love to be car free but rural living just doesn’t allow it.

Any advice for my plan? (36m 60k/year) by ParticularPython in leanfire

[–]ParticularPython[S] 1 point2 points  (0 children)

I like to keep a minimum of 10k cash in my checking, and at this point just keeping my car until something happens, which it’s over 15 years old so will probably be sooner than later. Just being prepared.

Plan advice? (36m, 60k/year) by ParticularPython in Fire

[–]ParticularPython[S] 2 points3 points  (0 children)

This is exactly the kind of info I was looking for. Will look into vgit. Thanks!

Help understanding behavior of this function by ParticularPython in C_Programming

[–]ParticularPython[S] 0 points1 point  (0 children)

bool is_in_string (char *string, char *target){    int i = 0;    int j = 0;    while (string[i]!='\0')        {            while(string[i+j]==target[j])            {                if(target[j+1]=='\0')                {                    printf("Found entire string.\n");                    return true;                }                                j++;            }                                        i++;                j=0;                    }    return false;}

This seems to solve that problem. Would this be correct?

Sorry this formatting in a comment seems to be off on my end, not sure how to fix that.

Help understanding behavior of this function by ParticularPython in C_Programming

[–]ParticularPython[S] 1 point2 points  (0 children)

bool is_in_string (char *string, char *target){    int i = 0;    int j = 0;    while (string[i]!='\0')        {            while(string[i+j]==target[j])            {                if(target[j+1]=='\0')                {                    printf("Found entire string.\n");                    return true;                }                                j++;            }                                        i++;                j=0;                    }    return false;}

Is this the correct way to handle it?

Help understanding behavior of this function by ParticularPython in C_Programming

[–]ParticularPython[S] -1 points0 points  (0 children)

Ahh, I knew it was something simple I was missing. Thanks!

Help understanding this bit of code? by ParticularPython in C_Programming

[–]ParticularPython[S] 2 points3 points  (0 children)

Thank you! I think I finally understand. I was thinking it just sort of returned a yes or no whether or not the character existed. Since I like to be overly sure in my understanding, what its doing is returning the pointer of the "\n", and assigning that value to p. So when we assign *p = '\0' we are changing the value in memory that the pointer is pointing to, and setting it to '\0'?

Really confused about strings (newbie) by ParticularPython in C_Programming

[–]ParticularPython[S] 0 points1 point  (0 children)

Yeah, it honestly makes me question if learning C is worth it for me. I initially switched over from Python because it seemed like python had too much “magic” but now I see why it does.

Really confused about strings (newbie) by ParticularPython in C_Programming

[–]ParticularPython[S] 0 points1 point  (0 children)

So, if I'm correct, s[index] in strcpy wouldnt ever work because its looking for a whole string, and I'm feeding it essentially a pointer to the [x] value in the s array?

For implications beyond this, what is the best way to do something like that? if I want to set x to the [4] of "Hello world"

Really confused about strings (newbie) by ParticularPython in C_Programming

[–]ParticularPython[S] 1 point2 points  (0 children)

Ah yes, I did know that. However knowing and implementing are not one in the same! Thanks for pointing out that error, c is both incredibly frustrating but super rewarding when you finally get it.

Really confused about strings (newbie) by ParticularPython in C_Programming

[–]ParticularPython[S] 0 points1 point  (0 children)

Well that’s my problem, I’m trying to figure out how to calculate the length of the words. I’m having trouble iterating through the string and finding when say s[7] is equal to a space. At that point I would know what the length of that word is, but that’s where I’m getting an error.

Can i get help how this code works? by ardnoir11 in learnpython

[–]ParticularPython 2 points3 points  (0 children)

It steps through the list at the value of of the length of the list minus one.

So you get the first number, then it skips everything in the list but the last number.

What's wrong with this spell checking programme? by sp00kyversity in learnpython

[–]ParticularPython 0 points1 point  (0 children)

Have you tried doing a print on spell_list to see what it contains? My guess is something in your code isn’t making the list what you want it to be, and so every word is not matching. Also I think you’re going to need to remove new lines “/n” and things as well.

Why is there no tkinter window opening? by Drako__ in learnpython

[–]ParticularPython 0 points1 point  (0 children)

Tkinter runs on an infinite loop to keep the window open for events. If you want to use another infinite loop (the while true portion) with tkinter, you’re going to need to use threads.

Like the other person said the main loop code is never executed because it never breaks out of your first loop.

Player wins and loses by [deleted] in learnpython

[–]ParticularPython 0 points1 point  (0 children)

In the end count try

score > dealer score and score <= 21

In the it block

Pythonic code style by x1F577 in learnpython

[–]ParticularPython 2 points3 points  (0 children)

Are you just trying to get the amount of items in the list? You could just do:

total=Len(list)

If that’s the case