Skip to content

Commit b23e3bd

Browse files
committed
fix typo code
1 parent f538bef commit b23e3bd

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

.idea/encodings.xml

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/python_basic.iml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bab2_if-else/test_skill/latihan_jurnal2_kereta.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
jarak = int(input("Masukan Jarak = "))
44
harga_tiket = int(input("Masukan Harga Tiket = "))
55

6-
if (jarak>300) or (harga>500000) :
6+
if (jarak>300) or (harga_tiket>500000) :
77
beli = harga_tiket*0.5
8-
elif (jarak>200) or (harga>300000) :
8+
elif (jarak>200) or (harga_tiket>300000) :
99
beli = harga_tiket*0.8
1010
else :
1111
beli = harga_tiket

bab6_filemodule/tp/tp5.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
2-
import modultp5
2+
from bab6_filemodule.tp import modultp5
3+
34
coe = json.load(open("DAPno3.txt","r"))
45
data = ['NIM','Nama','Nilai UTS']
56
print(data[0],"\t"+data[1]+"\t"+data[2])

bab9_funcrecursive/latihan5_m9.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def polindrom(kata):
4545
if __name__=="__main__":
4646
a = int(input("Masukan Nilai N = "))
4747
b = fibo(a)
48-
48+
c = jum(a)
4949
d = fak(a)
5050
l = [4,7,3,8,4,8,5]
5151
print()
@@ -57,7 +57,7 @@ def polindrom(kata):
5757
# Bagian Palindrom
5858

5959
kata = input("Masukan Kata = ")
60-
if palindrom(kata) :
60+
if polindrom(kata) :
6161
print("Palindrom")
6262
else :
6363
print("Tidak Palindrom")

0 commit comments

Comments
 (0)