본문 바로가기
프로그래밍/Python

[Python]Lesson 1

by FULL_M00N 2019. 7. 7.
728x90
반응형

We can display character for "print()"

There are "string" and "integer" in character's type.

 

print string type character :

print('WELCOME') -> WELCOME

print('23*3') -> 23*3

 

print integer type character :

print(69) -> 69

print(23*3) -> 69

 

str(integer type) -> string type

int(string type) -> integer type

 

print character through value :

name = 'John'

print(name)

x = 23*3

print(x)

->John

   69

 

728x90
반응형
SMALL

'프로그래밍 > Python' 카테고리의 다른 글

[Python] 정수들의 합  (0) 2019.08.18
[Python] 가위바위보 게임  (0) 2019.08.17
[Python] 성적 처리 - 조건문  (0) 2019.08.17
[Python] 지폐-동전 교환  (0) 2019.08.16
어딨냥? 빨리 오라개! 우리집 댕냥이 팔불출력 자랑하기 이벤트