Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Find first letter from a list
Post: RE: Find first letter from a list

(Nov-27-2019, 10:52 PM)ichabod801 Wrote: Because you are using '=+1' (set to positive one) instead of '+=1' (add one in place).Thanks stupid mistake, maybe you know THE best way how to find if secon...
DariusCG Homework 3 2,517 Nov-27-2019, 11:05 PM
    Thread: Find first letter from a list
Post: Find first letter from a list

Hello. I have function that finds first letter in all words from list. And I want to count all lower cases. I don't understand why quantity updates only once. arr=[["Hello","how","are","you"],["I","am...
DariusCG Homework 3 2,517 Nov-27-2019, 10:41 PM
    Thread: arrays sum list unsupported operand type(s) for +=: 'int' and 'list'
Post: RE: arrays sum list unsupported operand type(s) fo...

(Oct-20-2019, 05:00 AM)Larz60+ Wrote: shortest way to print? see my previous post, lines 10 and 11print(skaiciuoti(skaicius2)) This print is calling only one def function. How to insert print text, ...
DariusCG Homework 7 4,184 Oct-20-2019, 08:18 AM
    Thread: arrays sum list unsupported operand type(s) for +=: 'int' and 'list'
Post: RE: arrays sum list unsupported operand type(s) fo...

(Oct-19-2019, 07:09 PM)Larz60+ Wrote: It already does that: def skaiciuoti(skaicius): global suma suma=0 for betkokszodis in skaicius: suma+=betkokszodis return suma f...
DariusCG Homework 7 4,184 Oct-19-2019, 08:23 PM
    Thread: arrays sum list unsupported operand type(s) for +=: 'int' and 'list'
Post: RE: arrays sum list unsupported operand type(s) fo...

(Oct-19-2019, 06:11 PM)Larz60+ Wrote: Please always show actual error traceback, complete and unaltered, in error tags. It contains very useful information, especially when there are different langu...
DariusCG Homework 7 4,184 Oct-19-2019, 06:45 PM
    Thread: arrays sum list unsupported operand type(s) for +=: 'int' and 'list'
Post: arrays sum list unsupported operand type(s) for +=...

Hello. I want to make more "def" in my program, but I'am getting an error like this when want to sum numbers in the list. "this unsupported operand type(s) for +=: 'int' and 'list'" How to solve thi...
DariusCG Homework 7 4,184 Oct-19-2019, 01:28 PM

User Panel Messages

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