-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Expand file tree
/
Copy pathhelloworld.py
More file actions
25 lines (21 loc) · 739 Bytes
/
helloworld.py
File metadata and controls
25 lines (21 loc) · 739 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
# Introduction
# Day 1 - 30DaysOfPython Challenge
print("Hello World!") # print hello world
print(2 + 3) # addition(+)
print(3 - 1) # subtraction(-)
print(2 * 3) # multiplication(*)
print(3 + 2) # addition(+)
print(3 - 2) # subtraction(-)
print(3 * 2) # multiplication(*)
print(3 / 2) # division(/)
print(3 ** 2) # exponential(**)
print(3 % 2) # modulus(%)
print(3 // 2) # Floor division operator(//)
# Checking data types
print(type(10)) # Int
print(type(3.14)) # Float
print(type(1 + 3j)) # Complex
print(type('Asabeneh')) # String
print(type([1, 2, 3])) # List
print(type({'name': 'Asabeneh'})) # Dictionary
print(type({9.8, 3.14, 2.7})) # set