Lab 1. 파이썬 입력(Input)과 출력(Output) 예제


Lab 1. 파이썬 입력(Input)과 출력(Output) 예제

'''print()''' print("hello world") print('hello world') print(1) print([1,2,3]) print('my name is', 'left') '''input''' name = input("what is your name? ") print("your name is", name) age = input('what is your age? ') print('your age is' + age) print('your age is ' + age) nationality = input('where are you from?') print(nationality + 'is my nationality') print(nationality, ' is my nationality') print(nationality + " is my nationality") print(nationality, "is my nationality") Output Live Programm...



원문링크 : Lab 1. 파이썬 입력(Input)과 출력(Output) 예제