Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.43 KB

File metadata and controls

38 lines (33 loc) · 1.43 KB

Repository ini berisi dokumentasi pembelajaran Python Programming

Learn Python

18 April 2025
Introduction

  • Belajar fungsi print, dan juga comment di python

19 April 2025
Variable

  • Apa itu variabel, cara membuatnya, bagaimana menampilkannya
  • Output formatting, placeholder, assign operator
  • Belajar string, integer, float, and boolean variable

21 April 2025
Data type, and type casting

  • apa itu type casting?
  • mengapa kita pakai typecasting? contoh case penggunaannya
  • data type, (string, integer, float, boolean)
  • checking data type using type() function
  • casting using: str(), float(), int(), bool(),
  • explicit type casting, implicit type casting

23 April 2025
Accept user input, and some exercises

  • input() function
  • exercises, mad libs, area calc, and shopping cart
  • using typecasting, int(), float()
  • menggunakan formatted string literal (f-string) untuk memasukkan variabel ke dalam string, print(f"Halo, {nama}")
  • membuat variabel berisi operasi matematika: area = lenght * height
  • round() function

27 April 2025
Math in python, and some exercises

  • arithmetic operators
  • add (+=), substract (-=), multiplication (*=), division (/=), exponent (**=), modulo (%=)
  • built-in function math: round(), abs(), pow(), min(), max()
  • import math package, using math.pi, math.e, math.sqrt, math.ceil
  • exercises: circumference of a circle, area of a circle, and last is hypotenuse calculator