# for i in x:
# print(i*10, end="")
number = int(input())
a = range(1, 10)
for i in a:
print(f"{number}*{a}={number*a}")
# import random
# random.randint(a,b) #a,b 모두 포함
# while 1: # 0이 아닌 숫자는 True로 취급하여 무한 루프로 동작
# print('Hello, world!')
# while 'Hello': # 내용이 있는 문자열은 True로 취급하여 무한 루프로 동작
# print('Hello, world!')
balance = int(input())
while balance > 0:
balance -= 1350
print(balance)
start, stop = map(int, input().split())
# 특히 문자열에 True를 곱하면 문자열이 그대로 나오고, False를 곱하면 문자열이 출력되지 않습니다(True는 1, False는 0으로 연산
# >>> 'Fizz' + 'Buzz'
# 'FizzBuzz'
# >>> 'Fizz' * True
# 'Fizz'
# >>> 'Fizz' * False
# ''
start, stop = map(int, input().split())
for i in range(start, stop+1):
if i % 5 == 0 and i % 7 == 0:
print("fizz buzz")
elif i % 5 == 0:
print("fizz")
elif i % 7 == 0:
print("buzz")
else:
print(i)
'Programming > python' 카테고리의 다른 글
[python] 클래스 연습 (0) | 2023.03.11 |
---|---|
[python] 리스트 연습 (0) | 2023.03.08 |
[python] Day 26 (0) | 2023.03.05 |
[python] 데이터 스크랩 연습 (0) | 2023.03.04 |
[Python, web scrapper] 데이터 수집 연습 (0) | 2023.03.03 |