Posts

PYTHON GPT3 - RANDOM SET 10 DISTINCTIVE POWERBALL NUMBERS

Image
  ''' This python gui script (autogenerated by gpt3) creates a window with a button labeled "Generate Numbers".  When the button is clicked, the generate_numbers function is called to generate the 10 sets of Powerball numbers, and the save_to_file function is called to save the numbers to a file.  The file is named "powerball_[current date].txt", and the numbers are saved in the same directory as the script.  The script also displays a message "Numbers saved to file!"  on the gui window after the numbers are saved to the file. Please note that the above script is just a sample and you may need to modify it to suit your specific requirements. ''' import random import tkinter as tk from tkinter import filedialog from datetime import datetime def generate_numbers():     numbers = []     for i in range(10):         powerball_set = []         for j in range(5):             power...

Guess what was CHATgpt bot suggestion for 70+ years-old men?

SUGGESTED EXERCISE PROGRAM FOR 70+ YEARS-OLD MEN Walking                At least 30 minutes a day. C hair Yoga -          Seated Cat/Cow: Begin in a seated position with your legs crossed and your spine straight. Inhale and arch your back, lifting your chest and dropping your belly. Exhale and round your back, tucking your chin into your chest.   -          Seated Spinal Twist: Begin in a seated position with your legs crossed and your spine straight. Reach your right arm up and over your left shoulder and twist your torso to the left. Hold for a few breaths, then switch sides.   -          Seated Forward Fold: Begin in a seated position with your legs crossed and your spine straight. Inhale and raise your arms up overhead. Exhale and fold your torso forward, reaching your hands towards your toes. ...

TUTORIAL: How to Create a Python GUI that will use the power of CHATgpt

 CHATgpt SEARCH BOX V1.0 ... seeking comments, features, better code... ' ''This script (I named it py_chat_to_me.py, but you can call it whatever you want!) creates a GUI with an input field for the topic and another input field for the file name. It also creates a button that when pressed, calls the generate_text function to generate the text and save it to the specified file. This file must be saved where the api_key.py folder lives. The api_key.py folder contains the your private openai.com access key. The associated libraries are openai, re, api_key (see script at the bottom), and tkinter''' import openai import re from api_key import API_KEY import tkinter as tk from tkinter import messagebox openai.api_key = API_KEY # Set the model to use model_engine = "text-davinci-003" def generate_text():           # Get the topic from the user input     topic = topic_entry.get()     prompt = topic          # Gene...

Looking to make a profit from home during the pandemic?

Thru the grapvine a few months back, I started to get involved with Bitcoin investments, bitcoin mining, etc and got into a total new side of technology that I've been ignoring for many years. So let me introduce you to new concepts like: Bitcoin, cryptomining, cloudmining. What is a Bitcoin:  According to investopedia.com  "How exactly to categorize Bitcoin is a matter of controversy. Is it a type of currency, a store of value, a payment network, or an asset class? Fortunately, it's easier to define what Bitcoin actually is. It's software and a purely digital phenomenon—a set of protocols and processes. It is also the most successful of hundreds of attempts to create virtual money through the use of cryptography. Bitcoin has inspired hundreds of imitators, but it remains the largest cryptocurrency by market capitalization, a distinction it has held throughout its decade-plus history. Like standard currency, Bitcoin is produced and has processes and safeguards in place...
 Exploring TESLA stock with yahoo finance... This code explores different methods available in the Python library YFinance. Available for any questions import yfinance as yf In [21]: yf . pdr_override () In [22]: data_sym = input ( 'what symbol are you looking for:? ' ) #start_date = input('What date you want to start use YYYY-MM-DD:? ') #end_date = input('What date do you want o end at:? -- use YYYY-MM-DD ') what symbol are you looking for:? TSLA In [23]: # df_data = pdr.get_data_yahoo(data_sym, start=start_date, end=end_date) data = yf . Ticker ( data_sym ) In [24]: data Out[24]: yfinance.Ticker object <TSLA> In [25]: data . info Out[25]: {'zip': '94304', 'sector': 'Consumer Cyclical', 'fullTimeEmployees': 70757, 'longBusinessSummary': 'Tesla, Inc. designs, develops, manufactures, leases, and sells electric vehicles, and energy generation and storage systems in the United States, Chin...