I found out that the function "str.split()" has more than 2 optional inputs. Is it ok that I wrote the 3 optional inputs?
as I see, str.split() has 3 arguments while only 2 of them are optional. am I missing something?
In addition, the second parameter can be any string and not necessarily a character (as opposed to the instructions)
When a certain function have more than one option to recieve arguments, IDLE will show you only one option and not all of them.
when you are asking for inputs examples that halped me - do I have to write the output either? thanks and Shabbat Shalom
מה הכוונה ב "ציינו גם כיצד מתנהגת הפונקציה אם לא מעבירים לה את הפרמטר האחרון." ? איזה פרמטר צריך להעביר ?
First, I guess you mean to the 3rd section.
If I am right then you will see that the function recieves 3 strings and you may also send an integer. This integer is the last parameter and the question is "what will happen if you won't send the integer?"
Do you understand it now?
Yup, I already wrote this but I just wasn't sure I understood the wording. Thanks.