The coding gods are smiling on this kung fu looking mother.

in HiveCoding2 years ago

It's a Monday afternoon at one fifty five PM, the sun is bright behind me, its lights shining behind me. Like memories of yesterday I feel the heat as it slowly fades away retiring for the night.

If you are here because of the photo.
First my daughter took this photo yesterday. At her end. As she walked leisurely to the finish line.

image.png

This old guy is famous since everyone that passed him took #selfies with him. He whispers sweet things with cherries on top and ones that go pop.

With warm wishes for those catching their smiles taking them through a thousand mile ride. Promises singing in ears. Of dirty things you least ever hear from big smiling eyes.

A big sign in hand, open arms meeting you warmly.

Now why did I post this here?

In the coding section of hive since after all the dudes picture and the theme of my words does not suggest it is a coding post, well. Here is why.

from replit import clear
from art import logo

print(logo)
keep_going = True
top_bidder = ""
currrent_bidder = []
bidding = {}

def bidders(user_name, user_value):
    bidding[user_name] = user_value
    #bidding[value] = user_value
    clear()
    
    

def result(bidding):
    top_bid = 0
    for bidders, bids in bidding.items():
        #print(bids)
        current_bidder = bids
        
        #print(current_bidder)
        if current_bidder > top_bid:
            top_bidder = bidders
            top_bid = current_bidder
    print(f"The winner is {top_bidder} with a bid of ${top_bid}")
    #print(bidding)
    
            
while keep_going:
    name = str(input("What is your name?: "))
    value = int(input("What's your bid?: "))
    more = str(input("Are there any other bidders? Type 'yes' or 'no'.\n")).lower()
    bidders(name, value)
    if more == 'no':
        bidding[name] = value
        keep_going = False
        result(bidding)

Holy crap this is day nine in my one hundred day code course which has taken me about 5 days to finish. I think it is rough as I am only doing the bare minimum with the code.

I mean it is very basic and yet to me it is like trying to chisel marble.

I wish I had jus stuck to the guy on the picture kind of post but then again. Now you got something in surprise!.

break page.png

Thanks for your time

If you enjoy my posts, and would like to support me with more than an upvote, thank you very much, see my links below.


Browse merch here.


Click Image

Geomining to a better future referral link if you decide to support me

Click Image

bitcoin public wallet.png

Click Image

Shameless referral link to space game

Sort:  

Thanks for reading and its interesting what you took away from it.