#!/usr/bin/python from visual import * for line in sys.stdin: if line == '\n': break print line sphere(pos=(0,line,0),radius=.05,color=color.red) # I want to use line as a coord. # if you replace line with a number it works