print(), Displays output on the screen., input(), Reads data entered by the user., int(), Converts a value to an integer., float(), Converts a value to a decimal number., data type, The kind of value a variable holds, e.g. int, float, str, bool., .upper(), Converts all letters in a string to uppercase., .lower(), Converts all letters in a string to lowercase., len(), Returns the number of characters in a string., if, Tests a condition and runs a block of code if it is True., elif, Used after if to test another condition if the first is False., else, Runs a block of code if all previous conditions are False., comparison operator, Used to compare values (e.g. ==, !=, >, <)., while loop, Repeats code while a condition is True (condition-controlled)., for loop, Repeats code a fixed number of times (count-controlled)., procedure, A subroutine that performs a task but does not return a value., function, A subroutine that performs a task and returns a value., parameter, A variable used inside a subroutine to receive input., argument, The actual value passed to a parameter when calling a subroutine., indentation, Spaces at the start of a line that show which code belongs to a block., syntax error, A mistake in the program’s structure that prevents it from running..
0%
Python Revision Part 2
共享
共享
共享
由
Vernsinteo98
编辑内容
打印
嵌入
更多
作业
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
配对游戏
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要订阅
选项
切换模板
显示所有
播放活动时将显示更多格式。
)
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?