Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: square root of 5 input numbers
Post: square root of 5 input numbers

Hi, I have written the below piece of code, but output is showing list every time based on number of input. My expectation is to publish final list, how can I use return here import math def lists(*a...
mrityunjoy General Coding Help 1 2,033 Jun-10-2020, 10:17 AM
    Thread: square root of 6 input numbers
Post: RE: square root of 6 input numbers

from math import sqrt def lists(): x = int(input("Enter six value: ").split()) lst = [] for i in x: math.sqrt(i) lst = lst.append(i) print(lst) print(type(i)) return lst list()Please help me to fix t...
mrityunjoy General Coding Help 3 2,616 Jun-07-2020, 06:29 AM
    Thread: square root of 6 input numbers
Post: square root of 6 input numbers

Hi, I want to find sqrt of 6 input numbers and append the result in lst (an empty array), Not able to pass multiple input in a function from math import sqrt def lists(): x = input("Enter six va...
mrityunjoy General Coding Help 3 2,616 Jun-07-2020, 05:46 AM

User Panel Messages

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