Quantcast
Viewing all articles
Browse latest Browse all 5800

Input function question

@backheuser wrote:

Hi there,

I’m new to grasshopper so my question might be dumb, but I can´t find a solution.

Im using Python for GH.

The following sentence, that works on any python interpreter, doesn´t work on python for GH:

num = int (input ( "a number: " ) )
if num > 10 :
print ( “good” )
if num < = 10 :
print ( "bad ")

Does anyone knows what am I doing wrong??

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5800