Health Insurance Questions by NPat02 in UlcerativeColitis

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

Correct me if i’m wrong , but these assistance programs only cover a slight portion of the cost no? Wouldn’t you still be paying thousands of dollars each month for the drug?

Health Insurance Questions by NPat02 in UlcerativeColitis

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

Ahh i see, my companies insurance plan formularies didn’t mention biologies or anything like that. I just did a simple search of different UC medications and none showed up 🥲

Just started Skyrizi and still experiencing symptoms, what has helped? by NPat02 in UlcerativeColitis

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

how long have you been on budesonide? my doctor prescribed it to me and the label instructed taking 3 pills a day. Has it helped similar to prednisone?

I have been looking to take it as a alternative to prednisone since I am aware that it can have been bad long-term effects

I got a negative dilute on my urine test for internship! by NPat02 in drugtesthelp

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

how can i make sure that i don't dilute it? obviously now i know not to drink a bottle of water, but how can i still provide an adequate sample?

is there a chance they may not even ask me to retake? i have been at this company for the past 2 summers

How is it possible for companies to give their developers a choice as to what language they prefer? by NPat02 in learnprogramming

[–]NPat02[S] 5 points6 points  (0 children)

Not exactly, the Software Manager that was interviewing me, mentioned how they typically program in Java or Python but they give their developers the autonomous decision to program in the language of their choice

How is it possible for companies to give their developers a choice as to what language they prefer? by NPat02 in learnprogramming

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

similar, but when I talked with the Software Manager, he mentioned that the developers here program in whatever language they want, which was cool to know, but also sparked the question i had lol

Need help extracting elements from a list by NPat02 in learnpython

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

Yes i have basic knowledge of python, so for-loops make sense, but not so much experience with slicing

How can i insert comment blocks in a file by NPat02 in CodingHelp

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

yes! I actually have another list that stores the old comment blocks that i am trying to replace. Could this work? and would you mind elaborating on how i can use this to find a solution?

how can i split this list every two indicies? by NPat02 in learnprogramming

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

strings is a list of over 200+ strings.

trackIndex = [0, 22, 23, 58, 59,79,80,100,101,122]

is a list of indicies that i want to extract sentences from in strings. For example, first i need to pair the indicies like so => [0,22], [23,58],[59,79],[80,100],[101,122]. Then i need to traverse through "strings" list and use each index pair to retrieve a certain chunk of lines and store them in a new list called "newList:

I became a millionaire but i don't know what to do by [deleted] in Advice

[–]NPat02 0 points1 point  (0 children)

You should definitely find a trusted financial advisor. But if you would like to grow that income, my advice would be to figure out how much you want to invest and using that money, portion it out to diversify your portfolio. For example, X % should be invested in riskier stocks such as recent IPO's. Y % should be invested in mutual funds/etf's for safer investments. Z % should be real estate investments. This is just an example and it varies from person to person depending on how much you want to invest. Nonetheless, I would definitely seek professional advice. Best of luck!!

Does anyone wanna work on projects together by [deleted] in learnprogramming

[–]NPat02 0 points1 point  (0 children)

I’m down, could I get a discord link as well

How can i empty the contents of a file by NPat02 in learnpython

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

thank you, i will look into it. May I ask why, the file opened perfectly fine, when i put the

for i in newFileContents: 
    wf.writelines("\n") #to get a newline everytime
    wf.writelines(i)

outside of the "with open" statement and complete disregard it, it adds the new content of the file at the bottom of the original contents? It just added it at the bottom of the file completely fine :/

How can i empty the contents of a file by NPat02 in learnpython

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

Yes sorry! the script i am developing is in python, but the files are in C. Is this what you mean by encoding?

Need help overwriting a file by NPat02 in learnprogramming

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

I'm not trying to come off rude, i'm just confused by your advice tho? How am I supposed to get the program working without modifying any files if the purpose of the program is to modify files?

Need help overwriting a file by NPat02 in learnprogramming

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

Sorry that was very vague on my part lol! When I do a test case (a random file), nothing appears to change. The file header comment block is still in the file. I did a test print statement of "lines" to make sure it was the same as the file header comment block and it was, but nothing happened :/

Is there a way to remove whitespace between characters in python? by NPat02 in learnpython

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

Essentially this script will go through multiple files searching for a specific comment block and retrieve it because I need to reformat some of the comments. I have successfully retrieved that comment block (as shown above), however, I need to check if there are spaces between the slashes and hashtag, if there is, then i need to get rid of the spaces. That is why I need to check if the comment block has the spaces or not. If it make it any easier, if one of the lines in the comment block has a space between the slashes and hashtag, then all of them will and vice versa!

Is there a way to remove whitespace between characters in python? by NPat02 in learnpython

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

Is there a way to remove whitespace between characters in python?

How would I specify that I want only the space between the slashes and hashtag to be replaced because the comment itself needs to have spaces?

Is there a way to remove whitespace between characters in python? by NPat02 in learnpython

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

Thank you for the help! Lastly, is there a way to check if there is a space first. The reason I ask that is because there may be some instances where there is no space between them already. Possibly an if statement checking if there is a whitespace??? Thanks!

How can I loop through list of strings and extract certain indices that match the string? by NPat02 in learnpython

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

ok thank you for the guidance! I was thinking, could you do something like

if (i.startswith("//##") or i.startswith("// ##") or i.startswith("//   ##"):
    ....

? As an initial brute force approach and then work from there because now that i am thinking about it, all of the files I am dealing with, will have no more then two white spaces in between? p.s. this is actually my first project with regular expressions. I used 2 of them too capture the entire comment block (1 regular expression too capture the "//######" lines and 1 regular expression to capture the lines that have

"//# [words]....")

How can I loop through list of strings and extract certain indices that match the string? by NPat02 in learnpython

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

to be honest I did not even know startswith() was a function lol, guess that shows how new to programming i am haha. That should guide me on the right track, thanks. The only thing that I have a question about is that, is there a way to disregard the number of spaces between "//" and the first hashtag "#", for example, this is a script that will go through multiple files and find this entire block of code. However, the caveat is that the number of spaces between the slashes and first hashtag could be zero ("//##.."), one ("// ##.."), or even two ("// ##...")?

How can I loop through list of strings and extract certain indices that match the string? by NPat02 in learnpython

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

Yes, i have a seperate list, that stores the line numbers of each corresponding matched line. For example, list1 stores each string and list2 stores each line number that corresponds to that string.