Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Can't substract seconds from time
Post: Can't substract seconds from time

Hi iam novice to python.I can't understand where i did the mistake & why. Kindly correct my code. #Write a Python program to add 5 seconds with the current time. import datetime t1 = datetime.da...
Raj_Kumar General Coding Help 1 1,805 Apr-15-2020, 12:54 AM
    Thread: Factorial Code is not working when the given number is very long integer
Post: Factorial Code is not working when the given numbe...

Hi, Below code is to find "Factorial of a given number" n=int(input("enter a end range: ")) s=1 for i in range(1,n+1): s=s*i print(s)for smaller n values code returns correct output. for big num...
Raj_Kumar General Coding Help 2 2,308 Mar-31-2020, 01:21 AM
    Thread: User Defined function not working
Post: RE: User Defined function not working

Hi Axel, Thank you for reply. i want to create udf to ask input value (function contains input statement only). remaining part should not include in function. if input value not in the list then only...
Raj_Kumar General Coding Help 4 3,022 Dec-17-2019, 12:35 PM
    Thread: User Defined function not working
Post: User Defined function not working

Hi iam very beginner to python. my query is, i wrote user defined function(num()) to take input value (list item). if input value is not in the list item then again i want to ask input value (i.e. Ag...
Raj_Kumar General Coding Help 4 3,022 Dec-17-2019, 11:49 AM
    Thread: extract first and last 5 elements from given list and generate a new list.
Post: extract first and last 5 elements from given list ...

Hi, Iam very sorry. i have very very basic doubt. i wrote the code and getting error. but i can't understand why error is occurring. given list: num = [2,3,4,5,6,7,8,9,10,11,12,13,14,15,16] Required...
Raj_Kumar General Coding Help 1 2,383 Dec-07-2019, 04:40 PM
    Thread: Converting float (2.0) to integer(2)
Post: Converting float (2.0) to integer(2)

HI, Iam python beginner. Kindly help me. My query is, i want to round off float value to 2 decimals. if the number is 2 or 2.0 then the number to be converted into integer. Question: lst = [2,3.9634...
Raj_Kumar General Coding Help 2 2,514 Dec-07-2019, 10:12 AM

User Panel Messages

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