Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Writing a Linear Search algorithm - malformed string representation
Post: RE: Writing a Linear Search algorithm - malformed ...

Can you replace your code with below code: class LinearSearch: def __init__(self, entered_list=None, item=None): self.entered_list = entered_list self.item = item def...
gulshan212 General Coding Help 10 1,075 Jan-10-2024, 08:39 AM
    Thread: Can anyone recommend me an ai?
Post: RE: Can anyone recommend me an ai?

Well, there are good options available for this. You can use GPT-3 for the same purpose you are looking for, and apart from this, it can also take a large amount of input as compared to previous versi...
gulshan212 General Coding Help 1 760 Jan-04-2024, 01:30 PM
    Thread: Which one of these would you recommend?
Post: RE: Which one of these would you recommend?

Well, the question is too much old but I would like to answer this question as it still make sense and keeps value. Well, everyone have different aspect on this but in my opinion Python Like You Mean ...
gulshan212 News and Discussions 2 2,237 Dec-27-2023, 05:08 PM
    Thread: looking for a math function
Post: RE: looking for a math function

Yes, there is a function called pow(), which you can use to calculate cube rootes. For example: import math # Calculate cube root number = 8 cube_root = math.pow(number, 1/3) print(f"The cube root o...
gulshan212 News and Discussions 10 1,233 Dec-05-2023, 05:46 PM
    Thread: I want to create custom charts in Python.
Post: RE: I want to create custom charts in Python.

Well, depending on your needs and preferences there are lots of libraries that you can use to create custom charts such as Seaborn, Plotly, Altair, Pygal, and Holoviews. Thanks
gulshan212 General Coding Help 1 573 Nov-13-2023, 05:45 PM
    Thread: A working code to upload a file using sftp?
Post: RE: A working code to upload a file using sftp?

Well, I found too many codes for the same thing, can you try the below code, I hope you can get an idea of what you are looking for. Quote:from ftplib import FTP # FTP server details ftp_host = 'ftp...
gulshan212 Networking 3 1,275 Nov-06-2023, 04:42 PM
    Thread: How to add columns to polars dataframe
Post: RE: How to add columns to polars dataframe

Well, can you try the below code I hope you can get the result you are looking for. Quote:import polars as pl # Create a sample DataFrame data = { "A": [1, 2, 3], "B": [4, 5, 6] } df = pl...
gulshan212 Data Science 1 1,879 Nov-03-2023, 03:01 PM
    Thread: Need Guidance
Post: RE: Need Guidance

Well, first of all, I would like to say that if you are looking to learn Python, then there are many resources for that, such as YouTube videos, websites, and online communities. for example, https://...
gulshan212 News and Discussions 4 928 Oct-21-2023, 11:04 AM
    Thread: Python Tic Tac Toe with Functions
Post: RE: Python Tic Tac Toe with Functions

Well, you have covered many basic aspects of Python including exploring new concepts. Second thing that I want to say that you have also cleary used all function very effectively. Observer all code d...
gulshan212 Code Review 2 2,116 Oct-05-2023, 04:57 PM
    Thread: How can I design shapes on a curve in python?
Post: RE: How can I design shapes on a curve in python?

Well, I think there are some logical error with your code. Try below code: import matplotlib.pyplot as plt import numpy as np # Airfoil coordinates (replace with your actual airfoil data) # Format: ...
gulshan212 General Coding Help 2 857 Sep-13-2023, 04:25 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020