Python Function Call and Print Example

preview_player
Показать описание
Quick Analysis and Review of Python function call and print in brief Python Coding multiple choice quiz that involves function defined with fallback values as default values of the function arguments. It is important to note that such fallback values are optional but helpful.
Рекомендации по теме
Комментарии
Автор

Thank you for watching this informational Python example that is intended to highlight the impact of different arguments & switches when function calling in python. Here are the links to few more python examples:

STEMprof
Автор

Lol saw this on my recommended for some reason, but i was like why not I'll figure out its output (was only looking at the thumbnail, not gonna bother watching the whole video)

Firstly, that [::0**0] at the end got my brain thinking- because I definetely remember when learning math in school that anything to the power of 0 equals 1, for some reason. Obviously ::-1 reverses a list so all I ended up doing from there is figuring out f(3, 2) - which is 2*2*2 = 8, which makes the only possible answer "64 1 8" with the non-reversed being "8 1 64". It also wouldn't be surrounded by [ ] because of the asterisk at the start of the print statement, indicating it's being unpacked.

gloryness
Автор

The thing is you shouldnt have to figure this out, because noone would write such horrible and unreadable code in a real scenario.

Still informatoonal though

Jelte_Dijkmans