2024-07-23
Day 7 of #Keepcoding100Days. I learned the concept of SCOPE. Internal scope and globe scope.
Search for a command to run...
Day 7 of #Keepcoding100Days. I learned the concept of SCOPE. Internal scope and globe scope.
I can't remember it's Day 13 or 14 or even 15 of #KeepCoding100Days today. But I finally complete the code of Coffer Machine project. 😎 A small Python project for other coder, but a great achievement for me. I will have one day off code to celebrate...
My simple calculator. # def calculator function def add(n1, n2): return n1 + n2 def subtract(n1, n2): return n1 - n2 def multiply(n1, n2): return n1 * n2 def divide(n1, n2): return n1 / n2 # create a dictionary contains =-*/ o...
Secret Auction code. from replit import clear # HINT: You can call clear() to clear the output in the console. bid_list = {} more_bidder = "yes" high_amount = 0 while more_bidder == "yes": name = input("What is your name?: ") amount = int(i...
Here is my Caesar Cipher code. I did this about 8 months ago :) alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g...
A small piece of code in learning #Python dictionary. order = { "starter": {1: "Salad", 2: "Soup"}, 4: {1: [1, 2], 2: ["Steak"]}, "dessert": {1: ["Ice Cream"], 2: []}, } print(order[4][1][1])
达客宁
171 posts
江南有佳丽 生于帝王州 繁花未曾见 王谢纸上闻
茕茕影孑立 烟雨两凄迷 凭栏望楼台 四百寺安在