37 lines
1,002 B
Python
37 lines
1,002 B
Python
user_1 = {
|
|
"name": "Tom",
|
|
"age": 25,
|
|
"balance": 10000,
|
|
"currency": "USD",
|
|
"status": "true",
|
|
}
|
|
user_2 = {
|
|
"name": "John",
|
|
"age": 17,
|
|
"balance": 5000,
|
|
"currency": "EUR",
|
|
"status": "false",
|
|
}
|
|
user_3 = {
|
|
"name": "Karine",
|
|
"age": 30,
|
|
"balance": 100000,
|
|
"currency": "UAH",
|
|
"status": "true",
|
|
}
|
|
|
|
lis_of_currency = ["USD", "EUR", "UAH", "GBP"]
|
|
|
|
if user_1["name"] and user_1["age"] >= 18 and user_1["status"]:
|
|
if user_1["balance"] >= 10000 and user_1["currency"] in lis_of_currency:
|
|
print(
|
|
f"Welcome to our service! You can create your binance account, welcome {user_1['name']}!"
|
|
)
|
|
elif user_1["balance"] >= 1000 and user_1["currency"] in lis_of_currency:
|
|
print("You needmore money to create an account")
|
|
else:
|
|
print("You can't create an account")
|
|
elif user_1["name"] == "":
|
|
print("Please, write your name in your account description")
|
|
elif user_1["age"] < 18:
|
|
print("You are too young")
|