1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] python error syntaxerror 'return' outside function

Discussão em 'Python' iniciado por Stack, Julho 15, 2025.

  1. Stack

    Stack Membro Participativo

    Getting syntax error 'return' outside function while running below code.

    # Make the request to publish and check status code

    print("\tUploading...")
    server_response = requests.post(publish_url, data=payload,
    headers={'x-tableau-auth': auth_token, 'content-type': content_type})
    _check_status(server_response, 201)
    return

    Continue reading...

Compartilhe esta Página