Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Function and return value
Post: Function and return value

def COLLATZ(NUM): if NUM == 1: return NUM elif (NUM%2 == 0): NUM = NUM/2 print(NUM) COLLATZ(NUM) else: (NUM%3) == 1 NUM = (NUM*3)+1 ...
Roh_80 General Coding Help 1 1,876 Jan-24-2019, 01:57 PM
    Thread: List and isinstance
Post: List and isinstance

numbers = [1, 2, 3,[4,5,6]]` for i in numbers:` if isinstance(i,list):` `print("YES")` else: print("NO")`1. when 1 = 1 , why it ins't an instance of list ? It is a nested list and 1 is definit...
Roh_80 General Coding Help 1 2,314 Jan-14-2019, 03:48 PM

User Panel Messages

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