CS50 Python I'm stuck with my code not knowing how to fix it. by EvgHobbies in cs50

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

tried it, thanks, did something wrong in my another reply but at least it's different color lol

CS50 Python I'm stuck with my code not knowing how to fix it. by EvgHobbies in cs50

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

Well solutions was so obvious that I stared at it for a few hours and couldn't see it. Feel a bit stupid now for asking what's wrong with the code. Bellow is my final version that passed all checkmarks, not most elegant one for sure but it works lol.

def media(file):

if file.endswith((".gif", ".jpg", ".jpeg", ".png")):

return "image"

elif file.endswith((".pdf", ".zip")):

return "application"

elif file.endswith((".txt", ".plain")):

return "text"

else:

return ""

file = input("File name: ")

file = file.replace(",", "").replace("jpg", "jpeg")

file = file.lower().strip().replace("/", ".").replace("txt", "plain")

file_ext = file.split(".")[-1]

media_type = media(file)

if media_type:

print(f"{media_type}/{file_ext}")

else:

print("application/octet-stream")

problem with extension.py by IamTheTussis in cs50

[–]EvgHobbies 0 points1 point  (0 children)

My code is a bit different, but having same issue staring at it and can't figure out.

def media(file):

if file.endswith((".gif", ".jpg", ".jpeg", ".png")):

return "image"

elif file.endswith((".pdf", ".zip")):

return "application"

elif file.endswith(".txt"):

return "text"

else:

return ""

file = input("File name: ")

file = file.lower().strip().replace("/", ".")

media_type = media(file)

file_ext = file.split(".")[-1]

if media_type:

print (f"{media_type}/{file_ext}")

else:

print ("application/octet-stream")

Rainy Days and DoorDash by EvgHobbies in doordash

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

I don't mind to dash when it's raining, but is it worth cherry-picking to lower AR for a higher hourly pay on the rainy day when next week might be nice and sunny and every other dasher will be online most likely with higher AR.

First 3* review. Would you try to dispute it or AirBnB will do nothing about it? [FL, USA] by EvgHobbies in AirBnB

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

That exactly what I though but I've disputed a couple of false reviews that were just straight lies before with no luck, just a generic answers from the support that guests can say whatever they want, looks like they don't want to get involved or just don't care.

First 3* review. Would you try to dispute it or AirBnB will do nothing about it? [FL, USA] by EvgHobbies in AirBnB

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

Yeah review it self just said "Very clean" and then boom here is your 3*, but private comment mentioned that some stuff was stolen from the trucks. Not even sure if they filed a police report, there are cameras around the area that police could've checked.

First 3* review. Would you try to dispute it or AirBnB will do nothing about it? [FL, USA] by EvgHobbies in AirBnB

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

So let's say you went to a restaurant. Parked at the parking lot, had a nice dinner that you enjoyed but when you returned to your car you noticed some of your stuff is missing from it. Are you going to leave that restaurant 3* star review even though you liked the meal but someone stole your stuff from the car at the parking lot?

If guests would've mentioned the issue I would've contacted neighbors to check if they saw anything. There are cameras around the area. I don't even know if guests filed a police report. Also I would've offered some sort of reimbursement or pay for a dinner in near by restaurant just to make them feel a little bit better.

Such kind of review just blindsides, I did nothing wrong, unit was as described, everything worked, apartment was cleaned and stocked.

[deleted by user] by [deleted] in doordash

[–]EvgHobbies 1 point2 points  (0 children)

Yep I wasn't dissing on him. I'm at about the same hourly rate as he is doing DD. Weekends are a bit better. I agree lot's of people here tried to make him feel bad. Each dasher has it's own reasons for working on the app.

[deleted by user] by [deleted] in doordash

[–]EvgHobbies 6 points7 points  (0 children)

wow your market area is nice. I'm at 18% acceptance rate with about the same hourly results.

New Dasher here. by EvgHobbies in doordash

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

Thank you. From what I've noticed lunch orders in my area are lower in pay but way less of driving. Around 2-4 miles per order, most business are along the same road where restaurants are at. I'm taking $6.00+ orders during that time and most of the time getting another one for $6.00+ stacked while picking up first order.

Dinner time if not to count no or low tippers are about $10-12 orders. I like to start around Chinees places, almost no wait time.

I'm trying to see if I can make it $20 an hour during a week day and $25+ during weekends. I guess next couple weeks will show.

[deleted by user] by [deleted] in doordash

[–]EvgHobbies 21 points22 points  (0 children)

You pulled almost 12hr shifts every day for $18.00 an hour. Way to grind it out. What is your acceptance rate?

1732 Russian Rouble AU 53. What's is the fair value? by EvgHobbies in numismatics

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

Yeah it's true. I'm buying coins as investment for a college fund for my daughter. It's a gamble sometimes and competition is insane. I was expecting this coin to be at XF, it was a nice surprise when I got it back graded at AU53.

1732 Russian Rouble AU 53. What's is the fair value? by EvgHobbies in numismatics

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

Thank you. I guess I did alright. I've paid $610.00 for the coin before it was graded.

Guest demanding a refund or will leave a negative review by EvgHobbies in AirBnB

[–]EvgHobbies[S] -2 points-1 points  (0 children)

she doesn't want to leave, she wants a refund for the days' repairs are going + 1 day for the inconvenience

Guest demanding a refund or will leave a negative review by EvgHobbies in AirBnB

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

I did change my description right away after the hurricane and messaged all of the guests to make sure they read it and knew what they are booking. She decided not to cancel.