Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Safely Auth | Error Handling
Mastering Python: Annotations, Errors and Environment
セクション 3.  6
single

single

bookChallenge: 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.

  1. Create a code block to track errors (mention the keyword).
  2. Call the login() function in the error tracking block.
  3. Catch the TypeError and save its info inside the error variable.
  4. Print the error variable (error info) in the console.
  5. Catch the ValueError and save its info inside the error variable.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  6
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt