Jump to content

Simple Python Script Not Working


Recommended Posts

Hello, 

 

I tried to create a dead simple workflow which simply reverses the inputted text. Python doesn't seem to work. On the other hand, Bash seems to work, but I would like to know what's wrong with my Python workflow. Here's the script I'm trying to use: 

string = {query}
print string[::-1]

Here's the download link for the workflow: http://cl.ly/PhsE

 

Thanks in advance, 

 

Bruno

Link to comment

Hello, 

 

I tried to create a dead simple workflow which simply reverses the inputted text. Python doesn't seem to work. On the other hand, Bash seems to work, but I would like to know what's wrong with my Python workflow. Here's the script I'm trying to use: 

string = {query}
print string[::-1]

Here's the download link for the workflow: http://cl.ly/PhsE

 

Thanks in advance, 

 

Bruno

 

{query} should be "{query}" or '{query}'; otherwise Python won't interpret it as a string

 

Cheers :)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...