ch = 'a'
while(ch != 'Q' and ch != 'q'):
print "Press Q or q to quit, any other key to continue: ",
ch = raw_input()
if(ch != 'Q' and ch != 'q'):
print "You want to continue? "
else:
print "You quit"
ch = 'a'
while(ch != 'Q' and ch != 'q'):
print "Press Q or q to quit, any other key to continue: ",
ch = raw_input()
if(ch != 'Q' and ch != 'q'):
print "You want to continue? "
else:
print "You quit"
ch = 'a'
while(ch != 'Q' and ch != 'q'):
print "Press Q or q to quit, any other key to continue: ",
ch = raw_input()
if(ch != 'Q' and ch != 'q'):
print "You want to continue? "
else:
print "You quit"
ch = 'a'
while(ch != 'Q' and ch != 'q'):
print "Press Q or q to quit, any other key to continue: ",
ch = raw_input()
if(ch != 'Q' and ch != 'q'):
print "You want to continue? "
else:
print "You quit"
name = []
print "Enter course number: ",
courseNum = int(raw_input())
print "Enter your name: ",
name = raw_input()
print "Course number is: ", courseNum
print "Your name is: ", name
name = []
print "Enter course number: ",
courseNum = int(raw_input())
print "Enter your name: ",
name = raw_input()
print "Course number is: ", courseNum
print "Your name is: ", name
ch = 'a'
while(ch != 'Q'):
print "Press Q or q to quit, any other key to continue: ",
ch = raw_input()
ch = ch.upper()
if(ch != 'Q'):
print "You want to continue? "
else:
print "You quit"
print "Enter first string: ",
str1 = raw_input()
print "Enter second string: ",
str2 = raw_input()
if (str1 == str2):
print "The two Cstrings are equal"
elif (str1 > str2):
print "The first Cstring is larger"
else:
print "The second Cstring is larger"
import sys
print "Enter an integer: ",
input = raw_input()
for x in input:
if (x == 0):
if (not(x.isdigit()) and x != '-'):
sys.exit()
else:
if(not(x.isdigit())):
sys.exit()
num = int(input)
print num