최신Python Institute PCEP - Certified Entry-Level Python Programmer (PCEP-30-02 Deutsch Version) - PCEP-30-02 Deutsch무료샘플문제
Ein in einer höheren Programmiersprache geschriebenes Programm heißt:
Fügen Sie die Codefelder an den richtigen Positionen ein, um eine Codezeile zu bilden, die den Benutzer nach einem Float-Wert abfragt und diesen der Massenvariable zuweist.
(Hinweis: Einige Codefelder werden nicht verwendet.)


Explanation:

One possible way to insert the code boxes in the correct positions in order to build a line of code that asks the user for a float value and assigns it to the mass variable is:
mass = float(input("Enter the mass: "))
This line of code uses the input function to prompt the user for a string value, and then uses the float function to convert that string value into a floating-point number. The result is then assigned to the variable mass.
You can find more information about the input and float functions in Python in the following references:
* [Python input() Function]
* [Python float() Function]
Was ist die erwartete Ausgabe des folgenden Codes?

Ziehen Sie die Literale per Drag & Drop, um sie ihren Datentypnamen anzupassen.


Explanation:

Was passiert, wenn der Benutzer den folgenden Code ausführt?
