セクション 3. 章 6
single
Challenge: Safely Auth
メニューを表示するにはスワイプしてください
Note
These comments help you find the code that needs to be modified:
========== Modify code below ==========
========== Modify code above ==========
タスク
スワイプしてコーディングを開始
You have implemented the login() function, which raises errors. Implement the safely_auth() function that uses the login() function and catches errors.
- Create a code block to track errors (mention the keyword).
- Call the
login()function in the error tracking block. - Catch the
TypeErrorand save its info inside theerrorvariable. - Print the
errorvariable (error info) in the console. - Catch the
ValueErrorand save its info inside theerrorvariable.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 6
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください