-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.py
More file actions
36 lines (27 loc) · 987 Bytes
/
Copy pathpython.py
File metadata and controls
36 lines (27 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from datetime import datetime
now = datetime.now()
print now
# a = raw_input("You shall pass,but give me your name! ")
# print "This is a wonder, my name is also %s" % (a)
# def clinic():
# print "You've just entered the clinic!"
# print "Do you take the door on the left or the right?"
# answer = raw_input("Type left or right and hit 'Enter'.").lower()
# if answer == "left" or answer == "l":
# print "This is the Verbal Abuse Room, you heap of parrot droppings!"
# elif answer == "right" or answer == "r":
# print "Of course this is the Argument Room, I've told you that already!"
# else:
# print "You didn't pick left or right! Try again."
# clinic()
# clinic()
my_list = [i**2 for i in range(1,11)]
# Generates a list of squares of the numbers 1 - 10
f = open("output.txt", "r")
# for item in my_list:
# f.write(str(item) + "\n")
print f.read()
print f.readline()
print f.readline()
print f.readline()
f.close()