hexagon logo

Simple input in python script

Hello everyone, i am learning python, and trying simple programs using python in Adams.
My problem is how to ask for input string:
 
Something like:
name=input()
 
is giving error such:
 
File "<string>", line 1, in <module>
EOFError: EOF when reading a line
 
or macros in adams python should be just script without input?
 
Jozef
Parents
  • Thanks for answer, also i noticed difference using command help() in interpreter shell in Adams/View and "usual" Python shell. In Adams/Views is starts and after that quits. Which is imho very confusing. I was trying to see which modules are inside Adams/View Python Shell.
     
    And it will be great to setup name for both types of pythons, for future reference by users
     
    Jozef
Reply
  • Thanks for answer, also i noticed difference using command help() in interpreter shell in Adams/View and "usual" Python shell. In Adams/Views is starts and after that quits. Which is imho very confusing. I was trying to see which modules are inside Adams/View Python Shell.
     
    And it will be great to setup name for both types of pythons, for future reference by users
     
    Jozef
Children
No Data