Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: 'int' object is not iterable
Post: 'int' object is not iterable

Hello Everyone! Why do I see the error ('int' object is not iterable) when I add the method list? list02=[a,b,c,d,e,f,g,h,i,j] for item,item1 in enumerate(list02): print(list(item))And thank you.
el_bueno General Coding Help 2 2,685 Feb-18-2020, 05:44 PM
    Thread: Different Indentation Different Result
Post: RE: Different Indentation Different Result

Thanks a lot michael1789 for taking time to respond.
el_bueno General Coding Help 10 3,449 Feb-14-2020, 08:17 PM
    Thread: Different Indentation Different Result
Post: RE: Different Indentation Different Result

(Feb-12-2020, 08:29 PM)ndc85430 Wrote: Out of interest, how are you learning the language? If you don't have a decent book or material, I'd suggest that you should get one. Im on Udemy with a course...
el_bueno General Coding Help 10 3,449 Feb-13-2020, 12:19 AM
    Thread: Different Indentation Different Result
Post: RE: Different Indentation Different Result

(Feb-12-2020, 07:35 PM)ndc85430 Wrote: Do you understand how if and for work and that the indentation determine which statements are part of those blocks? I'm a complete beginner so It should help m...
el_bueno General Coding Help 10 3,449 Feb-12-2020, 08:09 PM
    Thread: Different Indentation Different Result
Post: RE: Different Indentation Different Result

(Feb-11-2020, 09:17 PM)buran Wrote: (Feb-11-2020, 09:01 PM)el_bueno Wrote: Here are technically the same codewell, technically it's not the same code due to different indentation. The difference i...
el_bueno General Coding Help 10 3,449 Feb-12-2020, 02:45 PM
    Thread: Different Indentation Different Result
Post: Different Indentation Different Result

sump=0 for num in listp: if num%2==0: sump=sump+num print(sumpsump=0 for num in listp: if num%2==0: sump=sump+num print(sump)sump=0 for num in listp: if num%2==...
el_bueno General Coding Help 10 3,449 Feb-11-2020, 09:01 PM
    Thread: Equality in Python
Post: RE: Equality in Python

Thank you so much, guys. it really help me . @jim2007 yes its a new language. I've learnt 4 languages and yes in the beginning we tend to think with the learnt language and try to apply its grammar ...
el_bueno General Coding Help 8 3,412 Feb-08-2020, 03:33 PM
    Thread: Equality in Python
Post: RE: Equality in Python

Maybe, but I reaaly need to make sure I did understand the difference between the two, so when I'll code Iwont stumble and think why do we choose that over the other.
el_bueno General Coding Help 8 3,412 Feb-05-2020, 08:39 PM
    Thread: Equality in Python
Post: RE: Equality in Python

An exemple with num%2==0 liist=[0,1,2,3,4,5,6,7,8,9,10] summ=0 for num in liist: if num%2==0: print(f'that\'s a even number : {num}') else: print(f'That\'s an odd number : {n...
el_bueno General Coding Help 8 3,412 Feb-05-2020, 08:03 PM
    Thread: Equality in Python
Post: Equality in Python

Hello! what is the actual difference between = and == I have some trouble understanding the actual meaning of theses 2 operators. Could someone explain it in a simple way?
el_bueno General Coding Help 8 3,412 Feb-05-2020, 07:16 PM
    Thread: If statement
Post: RE: If statement

Thank you a lot, really thank you! Yes it is beyond helping.
el_bueno General Coding Help 8 3,277 Feb-03-2020, 01:43 AM
    Thread: If statement
Post: RE: If statement

(Feb-01-2020, 07:00 PM)el_bueno Wrote: Thank you a looooot. What confuses me more is that I used s,p and r as conditions, so aren't we supposed to get an error if we use anything different then s,p...
el_bueno General Coding Help 8 3,277 Feb-01-2020, 08:25 PM
  Shocked Thread: If statement
Post: RE: If statement

Thanks a lot @ndc85430. and what is if len(values) > 0: ... Im really new with python, please could you try to explain it simply than that and give me exmples. I would be very grateful.
el_bueno General Coding Help 8 3,277 Feb-01-2020, 07:24 PM
    Thread: If statement
Post: RE: If statement

Thank you a looooot. What confuses me more is that I used s,p and r as conditions, so aren't we supposed to get an error if we use anything different then s,p and r? s='Hungry' p='Im full' r=7
el_bueno General Coding Help 8 3,277 Feb-01-2020, 07:00 PM
    Thread: If statement
Post: If statement

Hello! Thats a python code, and im a beginner s='Hungry' p='Im full' r=7 if 8: print('Im hungry') elif p: print('I didnt eat') elif z: print('Im full')I got I'm hungry Although 8 wasn...
el_bueno General Coding Help 8 3,277 Feb-01-2020, 05:59 PM
    Thread: Why do I get "none"
Post: Why do I get "none"

Hello! I tried this code print(print('Hello')) and here's what I got Hello None Why do I get "none" displayed?
el_bueno General Coding Help 2 2,850 Feb-18-2019, 01:50 PM
    Thread: How to display what I write on sublime text editor on the CMD
Post: RE: How to display what I write on sublime text ed...

Many Thanks Buran! Thanks a lot. You will always be the first one who evr helped me with coding in general. :)
el_bueno General Coding Help 5 3,211 Feb-04-2019, 01:58 PM
    Thread: How to display what I write on sublime text editor on the CMD
Post: RE: How to display what I write on sublime text ed...

Hi @Buran! Thanks a lot. still I didnt understand what you want to say by "Note that second and third one will display nothing because end index of slicing (i.e. 2) is less than start index of slici...
el_bueno General Coding Help 5 3,211 Feb-04-2019, 01:47 PM
    Thread: How to display what I write on sublime text editor on the CMD
Post: How to display what I write on sublime text editor...

Hi everyone! Im totally, Totally, Totally new with coding, and that my first ever post on a coding forum. Im learning Python, for almost two weeks now, so be gentle with me when you're gonna explain...
el_bueno General Coding Help 5 3,211 Feb-04-2019, 01:34 PM

User Panel Messages

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