I am new to Python, and I am using Python 3.3.2. I ran the following code :
import sys
def random(size=16):
return open(r"C:\Users\ravishankarv\Documents\Python\key.txt").read(size)
def main():
key = random(13)
print(key)
and expected it to print the content in the key file. The program runs without errors on IDLE but nothing happens. The key is not printed.
Can someone help?