I have seen variables like _ image and was wondering what _ meant?
In most languages _
is the only character allowed in variable names besides letters and numbers. Here are some common use cases:
some_variable
_private
filter_
(since filter
is a built-in function)[0 for _ in range(n)]
Note that some people really don't like that last use case.