Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Read String from standard input.

Python: Read String from standard input.
{filelink=16559}

import math as operation
while 1:
    val1=raw_input("Enter X: ")
    val1= int(val1)
    val2=raw_input("Enter Y: ")
    val2= int(val2)
    if val1==-1 or val2==-1:
     break
    print operation.pow(val1, val2)

Users who found this page were searching for:

  • delete an entry from a dictionary python

No comments yet.

Leave a Comment