File tree Expand file tree Collapse file tree 2 files changed +9
-40
lines changed
Expand file tree Collapse file tree 2 files changed +9
-40
lines changed Original file line number Diff line number Diff line change 22 "cells" : [
33 {
44 "cell_type" : " code" ,
5- "execution_count" : 6 ,
5+ "execution_count" : 7 ,
66 "metadata" : {
77 "collapsed" : false
88 },
1111 "name" : " stdout" ,
1212 "output_type" : " stream" ,
1313 "text" : [
14- " 321 \n "
14+ " 560 \n "
1515 ]
1616 }
1717 ],
1818 "source" : [
1919 " import random\n " ,
2020 " \n " ,
21- " print(random.randint(1, 600))\n "
21+ " print(random.randint(1, 600))"
2222 ]
2323 },
2424 {
2828 "collapsed" : true
2929 },
3030 "outputs" : [],
31- "source" : []
32- },
33- {
34- "cell_type" : " code" ,
35- "execution_count" : null ,
36- "metadata" : {
37- "collapsed" : true
38- },
39- "outputs" : [],
40- "source" : []
41- },
42- {
43- "cell_type" : " code" ,
44- "execution_count" : null ,
45- "metadata" : {
46- "collapsed" : true
47- },
48- "outputs" : [],
49- "source" : []
31+ "source" : [
32+ " "
33+ ]
5034 }
5135 ],
5236 "metadata" : {
5842 "language_info" : {
5943 "codemirror_mode" : {
6044 "name" : " ipython" ,
61- "version" : 3
45+ "version" : 3.0
6246 },
6347 "file_extension" : " .py" ,
6448 "mimetype" : " text/x-python" ,
6953 }
7054 },
7155 "nbformat" : 4 ,
72- "nbformat_minor" : 1
73- }
56+ "nbformat_minor" : 0
57+ }
Original file line number Diff line number Diff line change 44def main ():
55 print (ftfy .fix_encoding ('주문하다 - to intent for?' ))
66
7- runs = 0
8-
9- start = 1
10- stop = 6
11- step = 1
12-
13- # not totally accurate - at least one iteration when stop > start
14- iterations = (stop - start ) // step
15-
16- for i in range (start , stop , step ):
17- runs += 1
18-
19- print (runs )
20- print (iterations )
21-
227
238if __name__ == '__main__' :
249 main ()
You can’t perform that action at this time.
0 commit comments