freeCodeCamp/curriculum/challenges/english/07-scientific-computing-wit.../python-for-everybody/build-your-own-functions.md

808 B

id title challengeType videoId
5e7b9f060b6c005b0e76f05b Build your own Functions 11 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