Difference between revisions of "Try:"

From wikieduonline
Jump to navigation Jump to search
(Created page with " <pre> try: print(x) except: print("An exception occurred") </pre> == See also == * {{Python}} Category:Python")
 
Line 1: Line 1:
 +
{{lowercase}}
  
<pre>
+
try:
try:
+
  print(x)
  print(x)
+
[[except:]]
except:
+
  print("An exception occurred")
  print("An exception occurred")
 
</pre>
 
  
 
== See also ==
 
== See also ==

Revision as of 14:27, 10 March 2022

Advertising: