Avatar
GHOST
3b7fc823611f1aeaea63ee3bf69b25b8aa16ec6e81d1afc39026808fe194354f
Operational privacy for real people.

I’ll take a look at that for v4.0

I’m just trying to get practice with syntax and logic I read about. Started with a simple saving goal function. Then added a monthly breakdown in v2. Finally added how much you lose to inflation for the LOLs

I think so. Python is used to write scripts etc. I’m only on my second day of self learning coding so I’m not sure how to do that yet

Yes python. I’m trying to learn how to code and this is me playing around. You can copy and paste it into a python engine like pycharm and run it to see it in action

Not sure how to take a video of the run. Here is a screenshot of the output with the green being each user input

I’m probably boring everyone but this is what I made this morning. It was really fun and I’m proud of it. I won’t share anymore unless I come up with something really cool.

# Savings Goal 3.0, 4th Practice Problem with additions

# define a function for annual savings calculation

def savings_goal(salary):

savings = salary * 0.2

return savings

# set input field for annual salary

print("You should be saving!")

print("A good target is 20%.")

salary_input = float(input("What is your annual salary? "))

savings = savings_goal(salary_input)

print("Your annual savings goal is $" +str(savings)) #output

# define a function for a percheck savings amount

def percheck_target(savings, monthly):

percheck = savings / (monthly * 12)

return percheck

# set input field for number of pay periods per month

print(" ") # is there a better way to add a space?

monthly_input = float(input("How many times do you get paid a month? "))

percheck = percheck_target(savings, monthly_input)

print("You should save: $" + str(percheck) + " per paycheck") #output

print(" ") # is there a better way to add a space?

# TRUTH BOMB

def wealth_steal(savings):

steal = savings - (savings * (1-0.06))

return steal

steal = wealth_steal(savings)

print("You will lose: $" + str(steal) + " this year due to inflation.")

print("Maybe you should save in bitcoin.")

My first program that I have ever written! Proud

# Program to find area of a triangle

def calculate_area(Width, Height):

area = Width * Height

return area

print("Calculate the area of a triangle")

Width_Input = float(input("What is the width? "))

Height_Input = float(input("What is the height? "))

area = calculate_area(Width_Input, Height_Input)

print("The area is " + str(area))

Got pycharm installed and a little bit of practice under my belt. Reading through the documentation and have ChatGPT explaining different concepts to me. Code academy next.

Feeling more comfortable. I took a class in C twenty years ago and this is much easier so far.

print (“Checkmate Bitches”)

I don’t know any code languages so this will be my first

I think I’m going to learn python

There is a perverse joy in watching a node sending and receiving data from peers

GM nostr, it’s a great day to stack

Bitcoin backed stable coins. Give us your bitcoin. We’ll keep it safe and issue you a derivative.

Fly wheel. Swaps. Inverse securities. It’s all bullshit. Scammers and scams to get their hands on your bitcoin.

You can send it instantly and in infinite amounts. You don’t need weird derivatives and gimmicks.

GM nostr. Rocking the Kona light roast this morning. ☕️

Node runner. Network is secure