Python_2_Examples_and_Notes/05_if_for_while.py

26 lines
345 B
Python
Executable File

#!/usr/bin/python
# -*- coding: utf-8 -*-
age = 4
if age == 4 :
print "go!"
else :
print ":>"
men = ['1', '2', '3']
for vvv in men:
print vvv
while True :
rawi = raw_input("something?")
print rawi
#while age > 2 :
# age = age + 1
# print "infinite" # thats how to broken pipe ( :
#print raw_input("something?")