if wikibooks_cur_price >= 10000:
print("Buy 10")"
if wikibooks_cur_price >= 10000:
print("Buy 10")
else:
print("Holding")
### if ~ elif ~else
` ``
if price < 1000:
bid = 1
elif price >= 1000 and price < 5000:
bid = 5
elif price >= 5000 and price < 10000:
bid = 10
for i in range(0, 11):
print(i)
interest_stocks = ["Naver", "Samsung", "SK Hynix"]
for company in interest_stocks:
print("company: Buy 10")
interest_stocks = ("Naver", "Samsung", "SK Hynix")
for company in interest_stocks:
print("%s: Buy 10" % company)
for company, stock_num in interest_stocks.items():
print("%s: Buy %s" % (company, stock_num))
wikibooks = 10000
day = 1
while day < 6:
wikibooks = wikibooks + wikibooks * 0.3
day = day + 1
num = 0
while num <= 10:
if num % 2 == 1:
print(num)
num += 1
while 1:
print(“Find stocks”)
break
num = 0
while num < 10:
num += 1
if num == 5:
continue
print(num)
for i in [1, 2, 3, 4]:
for j in [1, 2, 3, 4]:
pass
for floor in apart:
for room in floor:
print("Newspaper delivery: ", room)
if not False:
.....
if not 0:
.....
if not []:
.....
if not {}:
.....
if not "":
.....
if not None:
.....
if not ():
.....
1 == 1 # -> True
1 != 1 # -> False