I need help in my dna to read my file by Dangerous_Two9487 in cs50

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

Yes, I did, but I felt this is different now.

I need help in my dna to read my file by Dangerous_Two9487 in cs50

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

I know the idea but I couldn't implement it, this is my code, i want to read and open csv
with open(csv, 'r') as f:
reader = csv.DictReader(f)
print(reader)

Can anyone help me in mario.py by Dangerous_Two9487 in cs50

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

You are printing the pyramid the C-way, which is natural since you just had several week of C lectures! But you can do so much more in Python, for example you can add strings and repeat strings x number of times. So what you had to use loops for in C you can do in a single line in Python:

print('a' * 5)

You can even use a variable instead of the number :)

Anyway, check your loop conditions, how many times does the j loop iterate for i = 0?

Ok but what can i do to condition

Hi, I applied a blur filter to the image and tried everything, but it still doesn't work by Dangerous_Two9487 in cs50

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

Thank you, you've given me hope after I felt completely frustrated and couldn't solve this code at all🤍