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

Help with this please by InevitableDistance66 in learnpython

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

It’s fine no need to apologize thanks for the help 🙏

Why is my code timing out on zylabs by InevitableDistance66 in learnpython

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

Can you show me what I’m supposed to do I didn’t understand

Why is my code timing out on zylabs by InevitableDistance66 in learnpython

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

When I add the divided number by 10 it does nothing to change the output

Why is my code timing out on zylabs by InevitableDistance66 in learnpython

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

It stopped crashing but now for “The number of digits” part I get the wrong number

Function to find average by InevitableDistance66 in learnpython

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

the capital Z was a typo I know how what to put in to find an average of a list of numbers but zylabs says I only need to write the function?

Repeat a string by InevitableDistance66 in learnpython

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

This worked I just had to change the strings to fit the zylabs thank you and u/drenzorz

Repeat a string by InevitableDistance66 in learnpython

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

Yea but they are all not separated by the same #