Variable naming conventions
1. A variable name must start with a letter and can contain only letters, numbers, and underscores. The name can be up to 20 characters long, such as web_title and excel_path_20220901. Variable names are case-sensitive. For example, webpage and WebPage are two different variables.
2. Use a consistent naming style, such as a combination of lowercase letters and underscores.
3. Use descriptive variable names to make flows easier to develop and maintain.
4. Do not use Python keywords, built-in function names, or Python package names as variable names. Reserved names include, but are not limited to, the following:
Contents | Keywords |
A | and, as, assert, async, await, agent, ArithmeticError, AssertionError, AttributeError, |
B | break, bytes, bytearray, bool, BaseException, BufferError, BlockingIOError, BrokenPipeError, BytesWarning |
C | class, continue, ctrils, classmethod, complex, ChildProcessError, ConnectionError, ConnectionAbortedError, ConnectionRefusedError, ConnectionResetError |
D | def, del, datetime, dict, DeprecationWarning |
E | elif, else, exec, except, elements, errors, enumerate, ellipsis, Exception, EOFError |
F | False, finally, for, from, fnmatch, float, frozenset, FloatingPointError, FileExistsError, FileNotFoundError, FutureWarning |
G | global, GeneratorExit |
H | |
I | if, import, in, is, int, ImportError, IndexError, InterruptedError, IsADirectoryError, IndentationError |
J | |
K | KeyboardInterrupt, KeyError |
L | list, LookupError,lambda, logger |
M | memoryview, MemoryError, ModuleNotFoundError |
N | None, nonlocal, not, NameError, NotADirectoryError, NotImplementedError |
O | or, os, object, OverflowError |
P | pass, print, pyperclip, property, PermissionError, ProcessLookupError, PendingDeprecationWarning |
R | raise, return,rpa_v33, rpa, re, random, requests, retry, ReferenceError, RuntimeError, RuntimeWarning |
S | shutil, subprocess, SDKError, staticmethod, super, str, slice, set, SystemExit, StopIteration, StopAsyncIteration, SyntaxError, SystemError, SyntaxWarning |
T | True, try, type, tuple, TypeError, TimeoutError, TabError |
U | utils, UnboundLocalError, UnicodeError, UnicodeDecodeError, UnicodeEncodeError, UnicodeTranslateError, UserWarning, UnicodeWarning |
V | visual, ValueError |
W | while, with, WindowsError, Warning |
X | |
Y | yield |
Z | ZeroDivisionError |