# Generated Python code

**URL:** <https://community.postman.com/t/generated-python-code/46137>\
**Category:** Help Hub\
**Created:** [April 8, 2023, 8:07am UTC](https://community.postman.com/t/generated-python-code/46137 "2023-04-08T08:07:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greghains](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@greghains](https://community.postman.com/u/greghains)\
**Post date:** [April 8, 2023, 8:07am UTC](https://community.postman.com/t/generated-python-code/46137/1 "2023-04-08T08:07:00Z")

</div>

Hi.

I am fairly new to Postman and even newer to Python, but have a few collections working for me in Postman. I have used the Code tool to generate “Python - Requests” code but several Python interpreters have reported Syntax Errors. This may be more of a Python question than Postman, but is the code generator normally reliable? It’s only 30 lines long and appears simple enough.

Thanks in advance.  
Greg
