Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Printing During a Loop
Post: RE: Printing During a Loop

(Oct-19-2021, 11:37 PM)apeltes Wrote: it doesn't change how the program runs. It still prints everything all at once when the secret number is guessed.What do you mean? Can you show us your output? ...
ibreeden Homework 16 349 Oct-20-2021, 07:30 AM
    Thread: while loops
Post: RE: while loops

No, wrong. Once a name is entered you should immediately perform the steps 3b*. So inside the while loop. There should not be a second for loop running after all names are entered.
ibreeden Homework 11 275 Oct-19-2021, 01:36 PM
    Thread: Could someone please explain or help with this
Post: RE: Could someone please explain or help with this

Hi Norona, If the question is asked once a week, perhaps it should be explained better. I will try it this week **smile** . A string (type str) is string of letters, or characters as programmers call...
ibreeden Homework 3 155 Oct-19-2021, 01:01 PM
    Thread: [split] Homework
Post: RE: [split] Homework

Hi @norona , That is quite a task for a one-week beginner. But don't let your head hang down. Just split the task in parts. First create a menu. The user should have three choices: Enter credentials ...
ibreeden Homework 2 323 Oct-12-2021, 08:15 AM
    Thread: Mysql. Not all parameters were used in the SQL statement
Post: RE: Mysql. Not all parameters were used in the SQL...

In two placeholders you have "s%" instead of "%s". "INSERT INTO dentalclinic(clinic_id,clinic_name,clinic_address,clinic_city,clinic_state,clinic_phone,clinic_email,clinic_website)" "VALUES(%s,%s,s%,...
ibreeden General Coding Help 5 334 Oct-09-2021, 09:56 AM
    Thread: Help creating an asterisk and T diamond
Post: RE: Help creating an asterisk and T diamond

Is that a diamond? It looks like a diabolo to me. I would draw a diamond like this: Output:****/\**** ***/TT\*** **/TTTT\** */TTTTTT\* /TTTTTTTT\ \TTTTTTTT/ *\TTTTTT/* **\TTTT/** ***\TT/*** ****\/****...
ibreeden Homework 2 164 Oct-09-2021, 09:29 AM
    Thread: Real-Time output of server script on a client script.
Post: RE: Real-Time output of server script on a client ...

Perhaps it would help if you told us what the output is and what output you expected.
ibreeden General Coding Help 2 228 Oct-03-2021, 09:37 AM
    Thread: How to acquire an imported file creation time
Post: RE: How to acquire an imported file creation time

I see no "state" in the code. Do you mean "stat"? Please show the complete error stack trace (in [error] tags).
ibreeden General Coding Help 4 269 Sep-23-2021, 08:12 AM
    Thread: How to do line continuation in Jupyter Notebook?
Post: RE: How to do line continuation in Jupyter Noteboo...

You are free to use the indentation you like on continuation lines. But good programmers do it according to PEP 8, which contains guidelines about formatting of code. Read the details in: Indentation....
ibreeden General Coding Help 4 307 Sep-22-2021, 04:22 PM
    Thread: How to do line continuation in Jupyter Notebook?
Post: RE: How to do line continuation in Jupyter Noteboo...

Unfortunately the continuation does not work for comments. You need to comment the second line also.
ibreeden General Coding Help 4 307 Sep-22-2021, 07:55 AM
    Thread: Need some coding guidance for a task
Post: RE: Need some coding guidance for a task

Hi Peny, welcome to the forum. We will help you, but first you must try yourself. It is good you split the problem in parts. We expect you to show some code and tell us what goes wrong. Then we will g...
ibreeden General Coding Help 5 380 Sep-22-2021, 07:39 AM
    Thread: In need of insight regarding Python file reading mechanisms.
Post: RE: In need of insight regarding Python file readi...

So the file contains a line with "(3i9,6e21.13e3)", we see on the image you show us. But are there perhaps (invisible) spaces after this text? In that case you had better test with: if line.startswith...
ibreeden General Coding Help 7 399 Sep-17-2021, 05:48 PM
    Thread: Found input variables with inconsistent numbers of samples: [1000, 200]
Post: RE: Found input variables with inconsistent number...

Hi Jenya56, you are not making it easy for us to understand the problem. First: if there is an error message you should post the complete message (in error tags). Second: the code you show us appears ...
ibreeden General Coding Help 2 222 Sep-15-2021, 09:48 AM
    Thread: url web scraping
Post: RE: url web scraping

Sure, no problem. You can scrape the links from a page and then in turn access those links.
ibreeden Web Scraping & Web Development 1 222 Sep-14-2021, 07:50 AM
    Thread: Getting "name 'get_weather' is not defined error and no json_data returned?
Post: RE: Getting "name 'get_weather' is not defined err...

It is not clear to me what you are asking. You are getting an error message? Then please show the complete error stack trace (in error tags). You import requests. But does "requests" have a method "ge...
ibreeden General Coding Help 6 482 Sep-13-2021, 09:56 AM
    Thread: Running A Loop Until You See A Particular Result
Post: RE: Running A Loop Until You See A Particular Resu...

(Sep-01-2021, 10:18 AM)knight2000 Wrote: but the problem is that when it does find a working proxy (response = 200), it still continues to check every other proxy anywayThen add a break statement to...
ibreeden General Coding Help 6 11,150 Sep-01-2021, 12:15 PM
    Thread: mySQL Database error not resolving.
Post: RE: mySQL Database error not resolving.

I agree with Larz60+. It is certainly line 61. query="DELETE from clinicmaster WHERE labname ="+nameI guess "labname" is a char column. So the value has to be enclosed in single quotes. query="DELETE ...
ibreeden General Coding Help 2 298 Aug-30-2021, 05:45 PM
    Thread: Noobie Python TypeError question
Post: RE: Noobie Python TypeError question

(Aug-30-2021, 05:12 PM)zoid Wrote: >>> x = list['6048922', '334318']You must use parentheses to use the list() constructor. Not square brackets. x = list('6048922', '334318')Or else you ca...
ibreeden General Coding Help 4 440 Aug-30-2021, 05:27 PM
    Thread: A deciphering problem
Post: RE: A deciphering problem

Thank you @Yoriz , I learned a lot about type hints. They are very useful.
ibreeden Homework 25 1,749 Aug-24-2021, 02:58 PM
    Thread: A deciphering problem
Post: RE: A deciphering problem

(Aug-23-2021, 04:00 PM)DPaul Wrote: I would like to study Yoriz' solution too, but both version 1 and 2 give a "TypeError: 'type' object is not subscriptable". Do you get it working?Yes, I had the s...
ibreeden Homework 25 1,749 Aug-23-2021, 05:03 PM

User Panel Messages

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