Life Is Wonderful *

Sources

Posts

23 posts

Udemy class day2 Functions, Conditionals, Input, For Loop, Dict Loops and String Formatting

Life Is Wonderful *|2020년 5월 16일

-내가 정리한 내용 instance(3, int)True How to make your code more readable?It is better to have a space between operators. if 3>1: print('a') 보다는 if 3 > 1: print('a') 가 더 읽기쉬움 After colon(:) you always have to have 4 space indentation. if 3 > 1:____print('a') String Formatting user_input = input("Enter your name: ")message = f"Hello {user_input}" # later

Udemy class day1

Life Is Wonderful *|2020년 5월 15일

- 내가 정리한 내용 import datetimeprint(datetime.datetime.now()) # module, object, function mynumber = 10mytext = "Hello"# variables print(mynumber, mytext)10 Hello print(type(my text)) a = list(range(1,10))print(a)[1,2,3,4,5,6,7,8,9]a = list(range(1,10,3)print(a)[1,4,7] # Type in terminaldir(list): A function that gives you all the things you can do with a specific type.

turtle

Life Is Wonderful *|2020년 5월 8일

turtle: A python feature like a drawing board, which lets you command a turtle to draw all over it! from turtle import * #use tutle.forward(0) if it's not working on Mac OSforward(100) turtle.forward(...) turtle.left(...) turtle.backward(...) tutrtle.right(...) can move the turtle move. turtle.forward(25)turtle.left(30)turtle.reset(): clear the drawing that your title has made so far.

git mac 설치 & github 가입

Life Is Wonderful *|2020년 5월 5일

git: VCS (version control system). It tracks the changes to our files or projects over time. 문서, 소스코드 등이 변경될 때마다 관리해 주는 것 Mac 설치방법 구글에서 git을 검색하면 나오는 https://git-scm.com/downloads 에서 Mac OS X를 선택. 잘 모르겠어서 Homebrew를 선택했고 설치가 됐는지 확인하기 위해서는 terminal에 가서 git --version을 입력.사용자 등록을 하기 위해서는 아래 두 라인을 입력한다. git config --global user.name "유저네임 지정"git config --global user.email "GitHub 계정이메일" 등록 후 확인

혼자여행_ 남미

Life Is Wonderful *|2020년 3월 14일

남미여행에서 돌아온지 일주일째다. 가기 전에는 얼마나 걱정을 했던지 밤새 아프고 다 토하기까지 했었는데 정작 가보니 아무것도 아니었다. 가서 느낀건 아 내가 이렇게 강한 사람이었구나. 혹시나 무슨 일을 당하지는 않을까, 핸드폰을 잃어버리지는 않을까 걱정했는데 아무일도 일어나지 않았고, 그 위험하다는 볼리비아 라파즈에서도 밤늦게까지 혼자 잘도 돌아다녔다. 미리 제대로 찾아보지도 않고는 덜컥 버스+걷기 코스로 마추픽추도 다녀와서 개고생을 했고, 초반에 페루에서 투어들이 힘들어서 살도 많이 빠지고, 마지막 도시에선 베드버그까지 물렸지만... 이런 것들을 다 겪으며 다녀오고 훨씬 더 독립적이고 강해진 내가되어 돌아온 것 같아서 기쁘고 뿌듯하다. 앞으로 시간이 날때마다 차근차근 일정과 각 도시정보들에 대해 기록할