始める前に
- ラボでは、Google Cloud プロジェクトとリソースを一定の時間利用します
- ラボには時間制限があり、一時停止機能はありません。ラボを終了した場合は、最初からやり直す必要があります。
- 画面左上の [ラボを開始] をクリックして開始します
Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Python is dynamically typed and garbage-collected. It supports multiple programming paradigms, including structured, object-oriented and functional programming.
You will learn about the Python print() function in this lab. The print() function prints the specified message to the screen, or other standard output device. The message can be a string, or any other object, the object will be converted into a string before written to the screen.
Please go through these directions. The Labs have a time limit and cannot be paused. The timer begins when you click the Start Lab button, shows how long Google Cloud resources will be made available to you.
After you click the Start Lab button, you will see an editor and terminal, where you will be performing further steps in the lab. It should looks like this:
You are going to finish a series of tasks related to Python programming.
task as shown below. You will need to use these files to complete the tasks in the lab.To complete this lab, you need:
You need to use Python programming to produce the text as an output.
Click the files icon to access the pre-created file.
Open the pre-created task1.py file, by clicking on the file name.
Write the Python command to put My first Python program on the terminal screen.
Note: The three dots (...) indicate where to add the code.
Convert the following Bash command into its equivalent Python code.
Click the files icon to access the pre-created file.
Open the pre-created task2.py file, by clicking on the file name.
Write the Python code to put the output on the terminal screen.
Execute the file by entering the following command in the terminal.
You need to use Python programming to produce the text as an output into the multiple times.
Click the files icon to access the pre-created file.
Open the pre-created task3.py file, by clicking on the file name.
Write the Python code to put This is fun! on the terminal screen 5 times.
Note: The three dots (...) indicate where to add the code.
You have successfully completed the tasks related to Python Programming.
このコンテンツは現在ご利用いただけません
利用可能になりましたら、メールでお知らせいたします
ありがとうございます。
利用可能になりましたら、メールでご連絡いたします
1 回に 1 つのラボ
既存のラボをすべて終了して、このラボを開始することを確認してください