# Passing an Integer as Input to Exec Node to run Python Script

**URL:** <https://discourse.nodered.org/t/passing-an-integer-as-input-to-exec-node-to-run-python-script/31933>\
**Category:** General\
**Created:** [24 August 2020 06:42 UTC](https://discourse.nodered.org/t/passing-an-integer-as-input-to-exec-node-to-run-python-script/31933 "2020-08-24T06:42:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheebha](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@sheebha](https://discourse.nodered.org/u/sheebha)\
**Post date:** [24 August 2020 06:42 UTC](https://discourse.nodered.org/t/passing-an-integer-as-input-to-exec-node-to-run-python-script/31933/1 "2020-08-24T06:42:42Z")

</div>

Hi,  
I am having python script in my local PC, I need to run through integer in node-red, if I run the script I am getting an error as Command failed: C:\Users\gundre\Desktop\NewPythonFiles\python\_test 1 one input.

My Script:  
a=int(input())  
for i in range (0,10,1):  
z=a+i  
print(z)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 October 2020 06:42 UTC](https://discourse.nodered.org/t/passing-an-integer-as-input-to-exec-node-to-run-python-script/31933/2 "2020-10-23T06:42:49Z")

</div>

Closed on 23 October 2020 06:42 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
