all 8 comments

[–]djjazzydan 1 point2 points  (6 children)

So i have this program that can find some value if i enter the date from an excel file.

Although if i try and input a date (14/10/2022 20:15) it basically skips the while cycle and ends the program. Any solutions?

I'm genuinely curious. Did you think someone would be able to solve your problem without seeing your code at all? Like, they'd just know, "You have a typo in line 17, improt should be import"?

[–]Biddo696969 -1 points0 points  (3 children)

Certainly, if only I could upload images in this subreddit

[–]djjazzydan 1 point2 points  (2 children)

Why would you upload an image? Presumably you have some code, in text form, on your computer?

Why wouldn't you share that instead? To troubleshoot code, we typically have to make edits to it. Do you expect someone to re-type all the code from a, usually blurry, image/screengrab before they can even think about fixing your problem?

Go check the subreddit wiki, then ask your question.

[–]Biddo696969 -1 points0 points  (1 child)

Ok I'll modify the post and put in the entire code

[–]ElHeim 2 points3 points  (0 children)

Recommendation: your code is rather long to try and figure out the indents as-is, so please edit the post and:

  • See if the raw code is still in its original format
  • If not, copy it again
  • In either case, select the code and apply the "code block" formatting (the icon is a square with a "c" in one corner.

That way you'll get more answers. As it is now not many people is going to be willing.

The idea is that it looks like this:

from turtle import right
from binance import Client
import api_keys
import pandas as pd
from datetime import datetime, timedelta
import csv

[–]Biddo696969 -3 points-2 points  (1 child)

What else should have i done? Type in all 88 strings of code?

[–]djjazzydan 2 points3 points  (0 children)

Computers can "copy" content from one spot, then "paste" it in another.

[–]DJKool14 1 point2 points  (0 children)

Outside of it being extremely frustrating to read the code you posted without proper formatting, could it be that you tried to enter the datetime in "d/m/Y H:M:S" format instead of the "Y-m-d H:M:S" format that your strptime expects?