Posts

Showing posts with the label tutorial
Image
 TUTORIAL WRITING TIPS: Step-by-step guide to writing a short story all chatGPT PROMPT : Can you provide me with a step-by-step guide to writing a short story, including the key elements of plot, character development, and setting? A: Sure, here's a step-by-step guide to writing a short story, including the key elements of plot, character  Choose a topic or theme: Before you start writing, you need to have a clear idea of what you want your story to be about. This can be anything from a personal experience to a fictional scenario. Develop your characters: Your characters are the heart of your story, so it's important to create interesting and believable ones. Think about their personalities, motivations, and how they relate to each other. Create a setting: The setting is the environment in which your story takes place. This can be a specific location or a broader backdrop, such as a time period or cultural context. Plot your story: Your plot is the sequence of events that make...

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...
 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...