Files
freeCodeCamp/curriculum/challenges/chinese/07-scientific-computing-with-python/python-for-everybody/build-your-own-functions.chinese.md
2020-08-16 04:45:18 +05:30

841 B

id, title, challengeType, isHidden, isRequired, videoId
id title challengeType isHidden isRequired videoId
5e7b9f060b6c005b0e76f05b Build your own Functions 11 false true nLDychdBwUg

Description

More resources: - Exercise

Tests

question:
  text: |
    What will the following Python program print out?:
    ```python
    def fred():
        print("Zap")
    def jane():
        print("ABC")

    jane()
    fred()
    jane()
    ```
  answers:
    - |
        Zap

        ABC

        jane

        fred

        jane
    - |
        Zap

        ABC

        Zap
    - |
        ABC

        Zap

        jane
    - |
        ABC

        Zap

        ABC
    - |
        Zap

        Zap

        Zap
  solution: 4