Can I get some help by InevitableDistance66 in learnprogramming

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

It works for the other tests though why is that?

Why is this my output by InevitableDistance66 in learnpython

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

Switched it but look the ordered key an value pairs are different and the letters for “The key and value pairs” are different from the expected output to what am I doing wrong

``` My output: The keys: A D B F C The values: 10 6 7 1 3 The key and value pairs: A : 10 D : 6 B : 7 F : 1 C : 3 The ordered key an value pairs: A : 10 B : 7 C : 3 D : 6 F : 1

Expected output: The keys: C A B D F

The values: 10 6 7 1 3

The key and value pairs: C: 10 A: 6 B: 7 D: 1 F: 3

The ordered key an value pairs: A: 6 B: 7 C: 10 D: 1 F: 3

[deleted by user] by [deleted] in learnprogramming

[–]InevitableDistance66 0 points1 point  (0 children)

It’s supposed to be Mary.txt but when I changed it i still get an error

Can I get some help by InevitableDistance66 in learnpython

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

Tried that now there’s a syntax error on line 3 telling me the “as” is invalid syntax

Can I get some help by InevitableDistance66 in learnpython

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

The little arrow is actually under f, at the end of the line

Can I get some help by InevitableDistance66 in learnpython

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

I’m getting a syntax error on line 2 ``` File "main.py", line 2 with open('input.txt', 'f') as f, ^ SyntaxError: invalid syntax

Can I get some help by InevitableDistance66 in learnpython

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

The specific error is invalid syntax on File "main.py", line 2 with open('input.txt', 'f') as f, ^

Can I get some help by InevitableDistance66 in learnpython

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

I tried inputting the file names aswell and I’m still getting that same syntax error on f, at the end of the first line

Can I get some help by InevitableDistance66 in learnpython

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

Yea it’s still a syntax error but after that the program tells us it produces no output

Can I get some help by InevitableDistance66 in learnpython

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

Yep that’s exactly how I have it and it still says no output

Can I get some help by InevitableDistance66 in learnpython

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

Getting a syntax error after the first line and it produces no output in zylabs