Skip to content

Repository files navigation

My Purwadhika Journey

This repository contains code for the Data Science and Machine Learning Program at Purwadhika.
The code is mostly homeworks regarding the course material as well as the Team Assignment Projects.
This learning journey is written in Python3.6 and using Visual Studio Code Version: 1.40.2.

Homework:

  1. pr-1: Variable and Mathematic Operations

  2. pr-2: Conditional (IF-ELIF-ELSE)

  3. pr-3: List Slicing, Palindrome, List Indexing, Try-Except

  4. pr-4: Set(Union, Intersection, Difference)

  5. pr-5: Looping Pattern

  6. pr-6: String Reverse

  7. pr-7: Email Validation

  8. pr-8:

    • a. kalkulator()

      kalkulator (+, -, /, *)
      inputan:
      inputan angka 1 : 8
      inputan angka 2 : 10
      masukkan operator: +
      output: hasil penjumlahan 8 + 10 = 18

    • b. kodemorse()

      Translator (Encoder-Decoder Kode Morse)
      Silakan masukkan kalimat: Anda
      Outputnya : (kode morse nya) * - / - - / * - / - *
      Silakan masukkan kalimat : . - / - - / . - / - .
      Outputnya : Aman
      kode morse dictionary: wikipedia

    • c. fizzbuzz()

      input masukkan angka :
      outputnya
      angka yang habis bisa dibagi 3 : Fizz
      angka yang habis bisa dibagi 5 : Buzz
      angka yang habis dibagi 3 dan dibagi 5 : Fizz Buzz
      1
      2
      Fizz
      4
      Buzz
      Fizz
      7
      8
      Fizz
      Buzz
      11

    • d. caesar_chiper()

      masukkan kata: Joni
      masukkan angka : 2
      hasil caesar cipher : lnpk
      masukkan kata : Joni
      masukkan angka : -2
      hasil caesar cipher: imlg

    • e. romawi()

      Batas maksimal 4000
      keluar notif : angka diluar jangkauan
      Translator (Encoder-Decoder Angka Romawi)
      silakan masukkan angka: 2018
      outputnya: (angka romawinya) MMXVIII
      silakan masukkan kalimat: MMXVIII
      output: 2018
      CCLXXVIII: 278
      MMMCMXCII.

    • f. konversi_angka()

      konversi angka digital
      masukkan angka: 9

  9. pr-9:

    • ascdesc(pilihan, lst)

      Buat Algoritma...
      Buat List
      Pilihan:
      1 = ascending(a-z) dari kecil ke besar
      2 = descending(z-a) dari yang terbesar ke terkecil
      tidak boleh pake reverse, ::-1, pake algoritma, tidak boleh pake fungsi
      output: sesuai pilihan

    • minmaks(lst)

      Buat Algoritma
      Cari Nilai Maksimal dan nilai Minimal

    • stats(lst)

      Buat Algoritma
      Buat List
      cari:
      Modus = nilai yang paling sering muncul
      Median = nilai tengah
      Mean = rata-rata
      Q1 = Quartal 1 atau 25%
      Q3 = Quartal 3 atau 75%
      Outliers

    • rotasi(x)

      Deret angka spin rotation

  10. pr-10: Reduce

Coding Challenge

segitiga_kata.py

print(segitigaKata('kode python'))
k
o d
e p y
t h o n
k o d e
p y t
h o
n

Group Assignment

  1. toko_buah_crud.py

    CREATE, READ, UPDATE and DELETE (CRUD) items at the fruit shop applications. toko_buah_flow_chart

    toko_buah

  2. tugaskelompok2.py

About

Python Coding and Projects

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages