SAINS KOMPUTER & ASAS SAINS KOMPUTER
Pages
(Move to ...)
Home
BUKU TEKS
BANK SOALAN
▼
Tuesday, 27 October 2020
ASK T3 : BAB 4 : CONTOH BUILT IN FUNCTION MUDAH
4.2.2
Objektif : Menggunakan
built-in function
mudah iaitu:
input()
print()
sum()
max()
min()
index()
Untuk rujukan jenis-jenis built-in function dalam Python, sila rujuk di sini:
https://www.w3schools.com/python/python_ref_functions.asp
https://www.programiz.com/python-programming/methods/built-in
https://docs.python.org/3/library/functions.html
Contoh:
Output:
Latihan:
Output:
Cuba jawab latihan ini:
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment