#!/usr/bin/python #coding=gb2312 while True: raply=raw_input('Enter type:'); if raply == 'stop': print('bye'); break; elif not raply.isdigit(): if (raply.isalpha()): print(raply.upper()); else: num=int(raply); print(num **2);