-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path12_convert_data.py
54 lines (36 loc) · 1.25 KB
/
12_convert_data.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
print("\n------- concept get value from console")
# name = input("please enter your name: ")
# family = input("please enter your family: ")
# print(f"my fullname is {name} {family}")
print("\n------- concept compare numbers")
value = 4
value_01 = "4"
value_02 = '4'
# print("type of value variable:", type(value))
# print("type of value_01 variable:", type(value_01))
# print("type of value_02 variable:", type(value_02))
# if (value == value_01):
# print("\n4 number is equal 4 string")
# else:
# print("\n4 number IS NOT EQUAL 4 string")
# if (value_01 == value_02):
# print("\n4 string is equal 4 char")
# else:
# print("\n4 string IS NOT EQUAL 4 char")
# if (value == int(value_01)):
# print("\n4 number is equal 4 string after convert")
# else:
# print("\n4 number IS NOT EQUAL 4 string after convert")
print("\n------- concept which decade of life after get user age:")
# age = int(input("please enter your age:"))
# if age <= 10:
# print("The first decade of life")
# elif age <= 20 and age >10:
# print("The Second decade of life")
# elif age <= 30 and age > 20:
# print("The Third decade of life")
# print(f"brith: {2024 - age}")
# print(float(4))
# print(int(21.32547))
str_num = "68.2457"
print(int(float(str_num)))