Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: help with commas in print functions
Post: RE: help with commas in print functions

(Oct-12-2021, 08:47 AM)bowlofred Wrote: Commas separate the arguments to a function. For, print(), each element is printed and the default separator between the elements is a space (but that can be...
mishraakash General Coding Help 11 3,475 Feb-10-2022, 02:02 PM
    Thread: Divide a number by numbers in a list.
Post: RE: Divide a number by numbers in a list.

low = 1 top = 9 sum = 0 for num in range(low, top+1): if num > 1: for i in range(2, num): if (num % i) == 0: break; else: print(num) sum+=num print("Sum :", sum)Can us...
mishraakash General Coding Help 7 8,073 Feb-10-2022, 01:56 PM
    Thread: Newbie have thoughts about logic
Post: RE: Newbie have thoughts about logic

Python is dynamically typed language. It has basically two types of loop For Loop While loop students = ['Peter', 'Camren', 'Andres', 'Jo', 'Geoff'] for name in students: print(name, len(name...
mishraakash General Coding Help 32 9,048 Sep-12-2021, 01:34 PM

User Panel Messages

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