This commit is contained in:
Chizuui
2025-11-27 00:38:38 +07:00
parent 5444efab13
commit 1795fa1c2f
81 changed files with 1893 additions and 0 deletions

16
test.py Executable file
View File

@@ -0,0 +1,16 @@
bergerak = True
while bergerak:
command = input("Masukkan perintah (maju, mundur, belok kiri, belok kanan, berhenti): ").lower()
if command == "maju":
print("Robot bergerak maju.")
elif command == "mundur":
print("Robot bergerak mundur.")
elif command == "belok kiri":
print("Robot berbelok ke kiri.")
elif command == "belok kanan":
print("Robot berbelok ke kanan.")
elif command == "berhenti":
print("Robot berhenti.")
bergerak = False
else:
print("Perintah tidak dikenali. Silakan coba lagi.")