141 elif "g" in message.text:
142 asyncio.get_event_loop().create_task(UserBot.restart(git_update=True))
143 else:
144 asyncio.get_event_loop().create_task(UserBot.restart())145
146
147# Command help section
139 elif "p" in message.text:
140 asyncio.get_event_loop().create_task(UserBot.restart(pip=True))
141 elif "g" in message.text:
142 asyncio.get_event_loop().create_task(UserBot.restart(git_update=True))143 else:
144 asyncio.get_event_loop().create_task(UserBot.restart())
145
137 if "p" in message.text and "g" in message.text:
138 asyncio.get_event_loop().create_task(UserBot.restart(git_update=True, pip=True))
139 elif "p" in message.text:
140 asyncio.get_event_loop().create_task(UserBot.restart(pip=True))141 elif "g" in message.text:
142 asyncio.get_event_loop().create_task(UserBot.restart(git_update=True))
143 else:
135 )
136
137 if "p" in message.text and "g" in message.text:
138 asyncio.get_event_loop().create_task(UserBot.restart(git_update=True, pip=True))139 elif "p" in message.text:
140 asyncio.get_event_loop().create_task(UserBot.restart(pip=True))
141 elif "g" in message.text:
A required function parameter isn't provided while calling the function. This is an error.
def add_student(student, section):
students[section].append(student)
add_student("Aaron") # Missing parameter `section`
def add_student(student, section):
students[section].append(student)
add_student("Aaron", "10A")