Difference between revisions of "Try:"
Jump to navigation
Jump to search
(Created page with " <pre> try: print(x) except: print("An exception occurred") </pre> == See also == * {{Python}} Category:Python") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
+ | * https://www.w3schools.com/python/python_try_except.asp | ||
− | + | try: | |
− | try: | + | print(x) |
− | + | [[except:]] | |
− | except: | + | print("An exception occurred") |
− | + | ||
− | </ | + | == Related == |
+ | * <code>[[def]] yourfunctionname:</code> | ||
+ | * <code>[[class]] yourclassname:</code> | ||
+ | * <code>[[return (Python)|return]]</code> | ||
== See also == | == See also == |
Latest revision as of 08:51, 15 March 2022
try: print(x) except: print("An exception occurred")
Related[edit]
See also[edit]
- Python, PIP, GIL, Flask, Django, Marshmallow,
def
, logging, Pandas, Numpy, AWS Chalice,import
,from
,tuple
,list
, Python exceptions,virtualenv
,.append
,pytz
,TZ
,print
,python3 -c
,os
, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs
, Black (Python), Python list structure, Mypy,variables
, Casting,try:
, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help
, Data Classes, raise
Advertising: