본문 바로가기

꼬물꼬물 개발자

검색하기
꼬물꼬물 개발자
프로필사진 한고운

  • 분류 전체보기 (22)
    • 백엔드 개발 (13)
      • Node.js 교과서 (0)
    • AI 개발 (0)
      • 모두의 딥러닝 (0)
      • 개발자를 위한 머신러닝&딥러닝 (0)
    • Python (7)
    • HTML,CSS,JavaScript (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2024/08   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2024/08/22 (2)

꼬물꼬물 개발자

Return

# Return Valuse 1def tax_calc(money):  return money * 0.35def pay_tax(tax):  print("thank you for paying", tax)to_pay = tax_calc(150)pay_tax(to_pay)pay_tax(tax_calc(150))# Return Valuse 2 my_name = "gowoon"my_age = 42my_color_eyes = "brown"# f"{변수} + 문자열"print(f"Hello I'm {my_name}, I have {my_age} years in the earth, {my_color_eyes} is my eye color")# practicedef make_juice(fruit):  return f"{f..

Python 2024. 8. 22. 01:23
Functions

# Functionsdef say_hello():  print("hello how r u?")say_hello()# Indentationdef say_bye():  print("bye bye")  say_hello()say_bye()# Parametersdef say_hello(user_name):  # user_name = parameter  print("hello", user_name, "how are you?")say_hello("gowoon") # gowoon = argument (data)say_hello("nico")say_hello("lynn")say_hello("ralph")# Multiple Parametersdef say_hello(user_name, user_age):   print(..

Python 2024. 8. 22. 00:07
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바