Quiz

Python Quiz for PEP8 – 02

Python Quiz: Test your knowledge with this engaging Python Quiz and put your skills to the test. Challenge yourself with questions on Python PEP8!

0%
0

Python PEP8 – 02

Level: Intermediate

1 / 10

1. How does PEP 8 recommend writing very long strings?

2 / 10

2. According to PEP 8, how many blank lines should be between functions?

3 / 10

3. How does PEP 8 recommend the usage of trailing commas in collections?

4 / 10

4. What does PEP 8 recommend for the naming of module names?

5 / 10

5. What is the PEP 8 recommendation for using spaces around operators?

6 / 10

6. According to PEP 8, what is the suggested order of imports?

7 / 10

7. According to PEP 8, should you write “if x:” or “if x != 0:” when checking for non-zero values?

8 / 10

8. What does PEP 8 recommend about the usage of inline comments?

9 / 10

9. What does PEP 8 say about the use of semi-colons to separate multiple statements on a single line?

10 / 10

10. What is the PEP 8 stance on using wildcard imports like “from module import *”?

Your score is

0%