MCPcopy Create free account
hub / github.com/geekcomputers/Python / change_has_characters

Method change_has_characters

Password Generator/pass_gen.py:39–50  ·  view source on GitHub ↗
(cls, change)

Source from the content-addressed store, hash-verified

37
38 @classmethod
39 def change_has_characters(cls, change):
40 try:
41 cls.has_characters[
42 change
43 ] # to check if the specified key exists in the dicitonary
44 except Exception as err:
45 print(f"Invalid \nan Exception: {err}")
46 else:
47 cls.has_characters[change] = not cls.has_characters[
48 change
49 ] # automaticly changres to the oppesite value already there
50 print(f"{change} is now set to {cls.has_characters[change]}")
51
52 @classmethod
53 def show_has_characters(cls):

Callers 1

decide_operationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected