반응형
Printing to the Console
print('what to print')
print("what to print")
잘못된 코드를 수정해보자.
print(Day 1 - String Manipulation")
print("String Concatenation is done with the "+" sign.")
print('e.g. print("Hello " + "world")')
print(("New lines can be created with a backslash and n.")
print("Day 1 - String Manipulation")
print('String Concatenation is done with the "+" sign.')
print('e.g. print("Hello " + "world")')
print("New lines can be created with a backslash and n.")
이름을 입력받고 이름의 길이를 출력
print( len( input("What is your name? ") ) )
반응형
'파이썬 > exercise' 카테고리의 다른 글
3-2 python Pizza calculator (0) | 2022.12.27 |
---|---|
2-3 python tip calculator (0) | 2022.12.27 |
2-2 python 남은 삶 계산 (0) | 2022.12.27 |
2-1/3-1 python BMI calculator (0) | 2022.12.27 |
1-2 python variables (0) | 2022.12.27 |