forked from ariahendrawan713/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperbaikanPYTHON.txt
More file actions
25 lines (23 loc) · 855 Bytes
/
perbaikanPYTHON.txt
File metadata and controls
25 lines (23 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
greeting_message = "Welcome to Codecademy!"
current_excercise = 5
todays_date = "March 31, 2023"
print greeting_message
%Bagaimana untuk menampilkan variabel current_exercise dan todays_date?
print current_excercise
print todays_date
mirthful_addition = 12381 + 91817
amazing_subtraction = 981 - 312
trippy_multiplication = 38 * 902
happy_division = 540 / 45
sassy_combinations = 129 * 1345 + 120 / 6 - 12
print happy_division
%Bagaimana untuk menampilkan variabel mirthful_addition, amazing_subtraction,trippy_multiplication, dan sassy_combinations?
print mirthful_addition
print amazing_subtraction
print trippy_multiplication
print sassy_combinations
city_name = "St. Potatosburg"
city_pop = 340000
%Bagaimana cara membuat komen?
#di atas merupakan variabel dari city_name dan city_top
""" di atas merupakan variabel dari city_name dan city_top """