# Assignment
a = 10
b = "python"
# Print Statement
print("Print text to output")
# If/Else
if a < 10:
print("less than")
elif a == 10:
print("equal to")
else:
print("greeater than")
#For Loop( iterate over a sequence)
for x in range(0, 10):
if x % 2:
continue #continue execution of the loop
else:
print(x)
# While Loop
while True:
if exitloop():
break # Exit the loop
# Function
def add(input_a, input_b):
return input_a + input_b # Return statement
# Import Module
import os
import maya.cmds as cmds
4.1 - Python Statements
最新推荐文章于 2023-08-16 09:25:03 发布