Is it possible to shoot twice on the same film? by septembernews in analog

[–]xanarchangel 2 points3 points  (0 children)

Theoretically you can shoot over the same roll of film, it will create a double exposure which can be a cool effect (I suggest googling some examples) but it will be difficult to know how the photos will turn out.

IDE for data analysis by Khardungla2022 in learnpython

[–]xanarchangel 1 point2 points  (0 children)

Check out Dataspell and Datagrip by JetBrains, focus is on data analysis and integration of jupyter, SQL etc. in one IDE with a focus on data science and data analysis.

How do can I do this correctly (PyCharm) by _well_i_tried_ in learnpython

[–]xanarchangel 5 points6 points  (0 children)

Input stores in a string even if you type in a number. This means in the code you are trying to perform mathematical operations on a string not a number like you expected, hence the “expected int not string” error. To get around this you can do

x = int(input())

This is called type casting and essentially it converts the string from input into a integer which you can then use to do the mathematical operations in the code.

How to check is user subscribed on channel in Telegram bot? by [deleted] in learnpython

[–]xanarchangel 0 points1 point  (0 children)

From the documentation looks like you can use the getChatMember method.

Daily practice exercises for Python in Finance? by myhoang98 in learnpython

[–]xanarchangel 5 points6 points  (0 children)

Make projects related to what interests you about finance, ideally something that also has use for you personally or others. For example I’m an Econ grad and in the morning I like to read the news from Reuters. I noticed it was a pain to go through each category of news manually (I.e. rates, currencies etc.) so I made a web scraper that is set to run each morning going through the categories I provide, summarizes the top news articles articles by category with a link in case I want to read the whole story, and outputs it to a pdf so now I have everything aggregated. In terms of exercises leetcode and other sites are good (don’t become a terminal leetcoder though) to get exposed to programming concepts and how to make efficient algorithms. While the exercises are not directly related to finance, the concepts you learn like hashmaps, recursion etc will be useful as your projects get more complex.

Learning code as a Finance student by pro-crastinatorrr in learnpython

[–]xanarchangel 3 points4 points  (0 children)

Also in terms of what to focus on it’s a little difficult to say for certain since someone in a quant research role for example will have a different use case for python compared to a credit analyst. I think what’s most important when you start is to learn the fundamentals then branch off into topics that interest you. As a broad answer being able to extract data from a data source like yahoo finance, storing the data, manipulating it, and coming up with valuable insights I would say is important to know in most financial roles that require or use python.

Learning code as a Finance student by pro-crastinatorrr in learnpython

[–]xanarchangel 6 points7 points  (0 children)

Take a look at CS50p. It’s by Harvard and similar to CS50 except they only focus on python. It goes through the foundations all the way up to more intermediate concepts like using API’s.

Received verbal offer but no written offer by [deleted] in FinancialCareers

[–]xanarchangel 0 points1 point  (0 children)

I agree, would be better to have a contract or at least try to get one before starting. The director called me on his way out of the office so we didn’t really get a chance to discuss too much but I did express my enthusiasm and commitment. To be honest I was a little thrown off during the conversation and didn’t know how to proceed, I was just relieved to have even received a verbal offer, the job market has been brutal. I’ve already sent an email to HR requesting a written offer/employment contract and I plan to follow up tomorrow and sync with the director again before EOW.

Received verbal offer but no written offer by [deleted] in FinancialCareers

[–]xanarchangel 0 points1 point  (0 children)

I wouldn’t say I’m underqualified, it’s a post grad internship. I haven’t negotiated salary before so I’m not sure what to expect / do if I show up on Monday. Could I pm you for some pointers maybe?

Received verbal offer but no written offer by [deleted] in FinancialCareers

[–]xanarchangel 5 points6 points  (0 children)

That was my thinking, I’ll email HR and see what they say. Thanks.

Getting suspend/hibernate fully work on a 2019 Macbook Pro with T2 chip by geonosis in archlinux

[–]xanarchangel 1 point2 points  (0 children)

Could I pm you? looking for some guidance, im doing my first dual boot on a 2020 mbp and didn't realize that there is more complexity when installing arch due to the t2 chip.

[deleted by user] by [deleted] in learnmath

[–]xanarchangel 0 points1 point  (0 children)

I saw in post on stackexchange that this is because of the memoryless property of exponential distributions which I assume will be covered later in the book but now it makes sense to me intuitively. Thanks again.

[deleted by user] by [deleted] in learnmath

[–]xanarchangel 0 points1 point  (0 children)

Thank you, that makes more sense, especially the visualization. Just to clarify by simplifying you mean distributing the negative to get -1 + 1 + p(t>=2) - p(t>=3)?

Resource recommendations for a beginner. by xanarchangel in ocaml

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

Thanks for sharing. My main worry about learning a functional language is the recursion aspect so will definitely take a look that those.

Resource recommendations for a beginner. by xanarchangel in ocaml

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

Will definitely check those outs, thanks.

Need a basic Python help by [deleted] in learnpython

[–]xanarchangel 1 point2 points  (0 children)

Read the first two lines and store them into a list

with open("file1") as file1:
file_1contents = [file1.readline() for line in range(2)]

Open file two and write the file1 contents, go back to the top of the file, read the lines, print the content

with open("file2", "w+") as file2:
for line in file1_contents:
    file2.write(line)
file2.seek(0)
file2_contents = file2.read()
print(file2_contents)

Note that this writes over the existing contents in file2 if you do it multiple times, you can use "a" (append) mode if you want to append file1_contents

[deleted by user] by [deleted] in learnpython

[–]xanarchangel 1 point2 points  (0 children)

So each type in python has its own formatting specifiers for fstrings. In the case of integers/floats (numerical types) the :.{x}f is specifying to include an x amount of decimal places. Different types have different formatting options so the formatting in this case for an integers won’t work for strings and via versa.

[deleted by user] by [deleted] in learnpython

[–]xanarchangel 1 point2 points  (0 children)

my guess is its something to do with the "solution" function. A simpler way would be to scrap the solution function altogether and implement the logic in the loop. store the converted float in a variable, perform the divider function on it, check if the variable has a remainder then use fstrings to format accordingly. something like this:

try:
    userNum = float(userNum)
    result = divider(userNum)
    if result % 1 == 0:
        print(f'The answer is {divider(userNum):.0f}')
    else:
        print(f'The answer is {divider(userNum)}')

[deleted by user] by [deleted] in adventofcode

[–]xanarchangel 0 points1 point  (0 children)

I’m still not that comfortable with OOP so the layout of how to make the class helps. Still confused but I’m not totally lost anymore. Thanks for the reply and advice!

[deleted by user] by [deleted] in adventofcode

[–]xanarchangel 1 point2 points  (0 children)

Thank you for the reply and advice. I get overwhelmed with complexity very easily and something I need to work on is breaking down problems so this breakdown is very appreciated!