Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Output File ?
Post: RE: Output File ?

When i replace row 26 and 27 than i get the following error
Kessie1971 Homework 11 2,015 May-11-2023, 08:19 AM
    Thread: Output File ?
Post: RE: Output File ?

Thanks i try the Formatting the print statement but can you please give a tip how i can do it
Kessie1971 Homework 11 2,015 May-10-2023, 02:02 PM
    Thread: Output File ?
Post: RE: Output File ?

Last question eedence Clearwater Revival 18[/output]
Kessie1971 Homework 11 2,015 May-10-2023, 12:51 PM
    Thread: Output File ?
Post: RE: Output File ?

I have found the solution result = cur.fetchall() count = 0 # Print the results for row in result: count += 1 print(count, row[1], 'by', row[2], '-', row[3])
Kessie1971 Homework 11 2,015 May-10-2023, 11:33 AM
    Thread: Output File ?
Post: RE: Output File ?

i try to create a counter loop Clearwater Revival tracks 18
Kessie1971 Homework 11 2,015 May-10-2023, 09:25 AM
    Thread: Output File ?
Post: Output File ?

Hello I try to find the top 10 albums in the chinook database 18
Kessie1971 Homework 11 2,015 May-06-2023, 03:04 PM
    Thread: Calculate AGE in years
Post: RE: Calculate AGE in years

I found it it was a space
Kessie1971 Homework 17 3,532 Apr-25-2023, 05:56 PM
    Thread: Calculate AGE in years
Post: RE: Calculate AGE in years

I try this class Student(persoon): StudentNr = 0 def __init__(self, naam, sekse, geboortedatum): super().__init__(naam, sekse, geboortedatum) Student.StudentNr += 1 self.StudentNr...
Kessie1971 Homework 17 3,532 Apr-25-2023, 05:44 PM
    Thread: Calculate AGE in years
Post: RE: Calculate AGE in years

Hello now i want make a new subclass Student and every student get a new number (increase but get the following error from datetime import datetime, date # Informatie persoon naam sekse en geboortda...
Kessie1971 Homework 17 3,532 Apr-25-2023, 05:00 PM
    Thread: Calculate AGE in years
Post: RE: Calculate AGE in years

Thanks I see it, type error VerhoogSalaris
Kessie1971 Homework 17 3,532 Apr-24-2023, 07:23 PM
    Thread: Calculate AGE in years
Post: RE: Calculate AGE in years

Great Thanks for your help !!! Now I get the following error , can you please help me !! from datetime import datetime, date class persoon: def __init__(self, naam, sekse, geboortedatum): sel...
Kessie1971 Homework 17 3,532 Apr-24-2023, 06:36 PM
    Thread: Calculate AGE in years
Post: RE: Calculate AGE in years

Other question, I try to make a sub classes and when there is no argument then value 0 But get the following error from datetime import datetime, date class persoon: def __init__(self, naam, sekse...
Kessie1971 Homework 17 3,532 Apr-24-2023, 06:05 PM
    Thread: Calculate AGE in years
Post: RE: Calculate AGE in years

When i try the Improvement of your class then I get the following erors 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)] Python Type "help", "copyright", "credits" or "l...
Kessie1971 Homework 17 3,532 Apr-24-2023, 05:07 PM
    Thread: Calculate AGE in years
Post: Calculate AGE in years

Hello I want to try to calculate the age in years but in de output i get 1 day instead of 1 year from datetime import datetime, date class persoon: def __init__(self, naam, sekse, geboortedatum...
Kessie1971 Homework 17 3,532 Apr-24-2023, 07:31 AM
    Thread: create a function format_date ?
Post: RE: create a function format_date ?

from datetime import datetime def format_date(datum): datestring = datum newdatastring = datetime.strptime(datestring, '%d-%m-%Y').date() return newdatastring print(format_date('24-10-1...
Kessie1971 Homework 7 1,797 Apr-24-2023, 06:37 AM
    Thread: Chinook Database in Python (Albun Top 10)
Post: RE: Chinook Database in Python (Albun Top 10)

Yes this is the database
Kessie1971 Homework 10 2,530 Apr-24-2023, 05:23 AM
    Thread: Chinook Database in Python (Albun Top 10)
Post: RE: Chinook Database in Python (Albun Top 10)

Sorry I can open your link
Kessie1971 Homework 10 2,530 Apr-23-2023, 05:50 PM
    Thread: Chinook Database in Python (Albun Top 10)
Post: RE: Chinook Database in Python (Albun Top 10)

Thanks for your answer but how get I get with a query the top listen 10 albums
Kessie1971 Homework 10 2,530 Apr-23-2023, 05:29 PM
    Thread: create a function format_date ?
Post: RE: create a function format_date ?

Do you have a example of the code
Kessie1971 Homework 7 1,797 Apr-23-2023, 04:54 PM
    Thread: Making a Class Person ?
Post: RE: Making a Class Person ?

Thanks for your answer but for my beginner is this difficult. I now how I must make a class but these is difficult for my, please help my Write a constructor for this class that takes three arguments...
Kessie1971 Homework 3 1,140 Apr-23-2023, 04:47 PM

User Panel Messages

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