2-1.py - Python 3.6.0rc1(v3.6.0rc1:29a273eee9a5 Dec 6 2016 16:24:13[GCC 4.2.1(Apple Inc build 5666(dot 3 on darwin Type"copyright"credits or"license for

2-1.py - Python 3.6.0rc1(v3.6.0rc1:29a273eee9a5 Dec 6 2016...

This preview shows page 1 - 2 out of 2 pages.

Python 3.6.0rc1 (v3.6.0rc1:29a273eee9a5, Dec 6 2016, 16:24:13) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "copyright", "credits" or "license()" for more information. >>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable. Visit for current information. >>> a=1 >>> b=2 >>> c=3 >>> if grade >=85 SyntaxError: invalid syntax >>> if grade >=85 : print("very well Done!") Traceback (most recent call last): File "<pyshell#7>", line 1, in <module> if grade >=85 : NameError: name 'grade' is not defined >>> if grade >= 85 : print("Very Well Done!") Traceback (most recent call last): File "<pyshell#9>", line 1, in <module> if grade >= 85 : NameError: name 'grade' is not defined >>> grade = 90 >>> if grade >= 85 : print("Very Well Done!") Very Well Done! >>> >>> result Traceback (most recent call last): File "<pyshell#14>", line 1, in <module> result NameError: name 'result' is not defined >>> >>> >>> ================ RESTART: /Users/jasper/Documents/Untitled.py ================ result 88 Very Well Done >>> result 90 SyntaxError: invalid syntax >>> result 70 SyntaxError: invalid syntax >>> ================ RESTART: /Users/jasper/Documents/Untitled.py ================ result 88 Very Well Done Grade is 7 >>> result 70 SyntaxError: invalid syntax >>> ================ RESTART: /Users/jasper/Documents/Untitled.py ================
Image of page 1

Subscribe to view the full document.

Image of page 2

Unformatted text preview: result 70 singnificant improvement is possible Traceback (most recent call last): File &quot;/Users/jasper/Documents/Untitled.py&quot;, line 12, in &lt;module&gt; print(&quot;Grade is&quot;,result) NameError: name 'result' is not defined &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; ================ RESTART: /Users/jasper/Documents/Untitled.py ================ result ================ RESTART: /Users/jasper/Documents/Untitled.py ================ rsult 101 rsult -4 rsult 33 result Traceback (most recent call last): File &quot;/Users/jasper/Documents/Untitled.py&quot;, line 6, in &lt;module&gt; grade = int(input(&quot;result&quot;)) ValueError: invalid literal for int() with base 10: '' &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; ================ RESTART: /Users/jasper/Documents/Untitled.py ================ rsult 101 rsult -4 rsult 3 result Traceback (most recent call last): File &quot;/Users/jasper/Documents/Untitled.py&quot;, line 6, in &lt;module&gt; grade = int(input(&quot;result&quot;)) ValueError: invalid literal for int() with base 10: '' &gt;&gt;&gt; ================ RESTART: /Users/jasper/Documents/Untitled.py ================ result 101 result -4 result 33 result0 singnificant improvement is possible Grade is 0 &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; count = 6 &gt;&gt;&gt; while count&gt; 0 SyntaxError: invalid syntax &gt;&gt;&gt; while count &gt; 0 : print (count * &quot;*&quot;) count = count -1 ****** ***** **** *** ** * &gt;&gt;&gt;...
View Full Document

  • Fall '18

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes