問題一覧
1
x = ["apple", "banana", "cherry"]
list
2
x = 20
int
3
x = ("apple", "banana", "cherry")
tuple
4
Python has syntax that allows developers to write programs with ____ than some other programming languages. (Interoperability with other languages/tools)
fewer lines
5
Python is known for its
simplicity and readability
6
Basic data types:
numbers, strings, booleans
7
Widely used in AI, ML, web development, automation, and more
python
8
Python can be used for _____, or for production-ready software development
rapid prototyping
9
Python uses ____ (not braces {}) to define code blocks
identation
10
Python relies on indentation, using ___, to define scope; such as the scope of loops, functions and classes.
whitespace
11
Python runs on an interpreter system, meaning that code can be executed as soon as it is ____. This means that prototyping can be very quick.
written
12
Python uses ____ to complete a command, as opposed to other programming languages which often use semicolons or parentheses.
new lines
13
Python can be used alongside software to create ____
workflows
14
Use # before the comment text
single-line comments
15
• Python works on different platforms
windows, mac, linux, raspberry, pi
16
Use input() function to capture user input
input
17
Python uses new lines to complete a command, as opposed to other programming languages which often use ____ or ___.
semicolons, parentheses
18
Python is Created by
guido van rossum
19
x = "Hello World"
str
20
No need for ____ to end statements
semicolon
21
Python can be used for rapid prototyping, or for ____
production-ready software development
22
Use triple quotes (''' or """)
multi-line comments
23
Python can be used on a server to create _____.
web applications
24
Python was designed for ____, and has some similarities to the English language with influence from mathematics
readability
25
High-level, interpreted programming language
python
26
___ is Case-sensitive language
python
27
Comments help explain code and improve readability
purpose
28
Loops:
for loop, while loop
29
Python runs on an ____, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
interpreter system
30
Use the print() function to display text or variable values
output
31
Python relies on ___, using whitespace, to define scope; such as the scope of loops, functions and classes.
identation
32
Why python for Al and Ml
simplicity and readability, extensive libraries, active community support, platform independence, integration capabilities
33
Other programming languages often use ____ for this purpose
curly-brackets
34
Python can be used to handle ____ and perform complex mathematics.
big data
35
Variables and data types
strings, boolean, integers, floats
36
x = {"apple", "banana", "cherry"}
set
37
Python can connect to ____. It can also read and modify files.
database systems
38
Collections:
lists, tuples, dictionaries, sets
39
Conditional Statements:
if, elif, else
40
Python is release in
1991
41
x = 20.5
float
42
Python has a simple syntax similar to the ____
english language
43
x = {"name" : "John", "age" : 36}
dict
44
Python can be used to handle big data and perform _____.
complex mathematics
45
x = True
bool