Wednesday, December 29, 2010

sys: writing a concatenated program without space

##here is the program:

name= raw_input("what is your name:")
sex= raw_input("are you male or female:")
height= input("Height:")
weight= input("Weight:")

import sys
write=sys.stdout.write
write (name)
write (sex)
write (height)
write (weight)

###end

for more informations about "sys", go :

sys — System-specific parameters and functions

Python has six basic operations for numbers

Python has six basic operations for numbers:

Operation Symbol Example
Exponentiation ** 5 ** 2 == 25
Multiplication * 2 * 3 == 6
Division / 14 / 3 == 4
Remainder % 14 % 3 == 2
Addition + 1 + 2 == 3
Subtraction - 4 - 3 == 1

31 python keywords

Python has thirty-one keywords which should be avoided from setting Variables:

andasassertbreakclasscontinue
defdelelifelseexceptexec
finallyforfromglobalifimport
inislambdanotorpass
printraisereturntrywhilewith
yield

Sunday, December 12, 2010

learn some scripting, write a maya plug in

it is a bit annoying that maya doesnt have the "locate name" function
lets see this plug in:

http://www.rodgreen.com/?p=117

would like to start some scriptng and write some tools soon :D