Difference between revisions of "Try:"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
+ | * https://www.w3schools.com/python/python_try_except.asp | ||
try: | try: | ||
Line 5: | Line 6: | ||
[[except:]] | [[except:]] | ||
print("An exception occurred") | 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: