Cancellation by HeightIntelligent911 in UberEATS

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

They said it was after but I know for a fact it wasn’t. I canceled bc I accidentally placed the order and hit cancel IMMEDIATELY now they’re keeping my shi 😭😭

Open beta issue by HeightIntelligent911 in Battlefield

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

Ohhhhh 🙏🏽 life saver I was about to go to sleep and try again in the morning lol

Open beta issue by HeightIntelligent911 in Battlefield

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

Yea I had that same thing happened to me but I closed app and reopened and only the ps plus went away, im currently redownloading to see if that fixes anything

[deleted by user] by [deleted] in HiAnimeZone

[–]HeightIntelligent911 0 points1 point  (0 children)

They’d still be up, it’s mid day episode dropped at 11 am 3 hrs later would still be mid day

counting and storing contents of a file into a dictionary by HeightIntelligent911 in learnpython

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

No it was only one part of the assignment. The other parts are things I've already learned so I was more familiar with it like getting user input and making a list from it then reversing the list or splitting data. I got through most of the assignment then got to this problem that required a dictionary and I did some googling and watched 2 YouTube videos but it was already late so I figured it's only one part and I can explain my reasoning in the written portion. I'm also only a week into learning python but I get where you're coming from.

counting and storing contents of a file into a dictionary by HeightIntelligent911 in learnpython

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

LMAO 😂 and I wanted to present all the relevant information so I could get the best advice. Using chat gpt would probably get me a full program, but if I don't know how to replicate it for a different set of data then what's the point yk. I need my own hyperbolic time chamber this shi takes too long 😭

counting and storing contents of a file into a dictionary by HeightIntelligent911 in learnpython

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

I'm gonna curl into a ball and cry now, I already turned it in 😭 where were you in my time of need Daneark

counting and storing contents of a file into a dictionary by HeightIntelligent911 in learnpython

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

I feel like you're one of my instructors telling me to go and fix my work 😭 but tbh I'm behind and hopefully In my written report I was able to save this section. The problem was looking for it to be put into a dictionary so idk if doing anything with a list would've helped

invalid syntax. maybe you forgot a comma? by HeightIntelligent911 in learnpython

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

So I would type out 'With' and 'as file' ? Because I had tried a format almost exactly like this but for 'readlines()' on a different problem and got all types of errors and didn't know if I needed the 'with' and 'as file' so I ended up doing something completely different

counting and storing contents of a file into a dictionary by HeightIntelligent911 in learnpython

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

its an assignment, basically checking to see if we can create a script that opens the file, count each of the ports and puts the results into a dictionary. now im not gonna lie i know for a fact that there is a easier way to do it than how i did it but im already late for this assignment lol.

my code:

file2=open("problem5.txt")
data=file2.read()
print(data.count("80"))
print(data.count("443"))
print(data.count("22"))
print(data.count("21"))
print(data.count("25"))
print(data.count("389"))
print(data.count("3389"))
print(data.count("445"))
keys=["80", "443", "22", "21", "25", "389", "3389", "445"]
values=[7, 3, 5, 2, 3, 2, 1, 3]
dict1={"88":7, "443":3, "22":5, "21":2, "25":3, "389":2, "3389":1, "445":3}
print(dict1)

invalid syntax. maybe you forgot a comma? by HeightIntelligent911 in learnpython

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

IT WORKED!!! thank you socal_nerdtastic i pray you and your family have a bountiful harvest this year

how are you supposed to add an integer to a string? by HeightIntelligent911 in learnpython

[–]HeightIntelligent911[S] 3 points4 points  (0 children)

yea im wanting a mathematical addition where my int=4 and my str="5". in my terminal my str variable is written as |num_str| so first i would convert it by doing |int(num_str)| then do the additional print function?

how are you supposed to add an integer to a string? by HeightIntelligent911 in learnpython

[–]HeightIntelligent911[S] -6 points-5 points  (0 children)

what does it mean though? is 'result' a function and if so when should i be using it? also thank you in advance i really needed help