Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python time
Post: Python time

Hello everyone, I need to create a program that converts an input like this one: 1m and 45s 10m,10s 32s, and 12h 76h 1s Into an output like this one: 00:01:45 00:10:10 12:00:32 76:00:00 00:00:01 ...
SamAnw General Coding Help 1 494 Feb-14-2020, 03:37 PM
    Thread: Python Type error!
Post: RE: Python Type error!

(Feb-14-2020, 02:13 PM)buran Wrote: what do you think lines 5 and 6 are doing? You assign int to a name h, so the name h now points to the type int and when you try to subscribe it you get the error...
SamAnw General Coding Help 4 795 Feb-14-2020, 02:27 PM
    Thread: Python Type error!
Post: Python Type error!

Hello! I've been working on this program and I don't know why, but there seems to be a problem with it... txt = "Prob05.in.txt" msg = open(txt, "r") msg = msg.read() h = msg.split("\n") h=int g = fl...
SamAnw General Coding Help 4 795 Feb-14-2020, 01:41 PM
    Thread: Python time
Post: Python time

Hello I have to write a python program that changes an input file like the following: 1 hour 20 minutes 30 minutes and 2 hours into an output file like the following: 01:20:00 02:30:00 I have n...
SamAnw Homework 1 476 Feb-14-2020, 05:22 AM
    Thread: Python error
Post: Python error

Hello everyone! I've been working on this program: txt = "Prob03.in.txt" msg = open(txt, "r") msg = msg.read() n=int countCase=1 for prob in msg: prob =prob.split() i =0 while i<2: ...
SamAnw General Coding Help 1 432 Feb-14-2020, 04:59 AM
    Thread: Outputs missing
Post: RE: Outputs missing

(Feb-12-2020, 06:21 AM)michael1789 Wrote: (Feb-12-2020, 04:50 AM)SamAnw Wrote: print(LED[LED1], LED[LED2]) Your only printing two things. Maybe you mean to indent things so that it's all in your ...
SamAnw General Coding Help 4 647 Feb-12-2020, 03:47 PM
    Thread: Outputs missing
Post: Outputs missing

Hello, I've been working on a python program that reads a file instead of inputs. However, there seems to be a problem in my program and it won't read after the first line of the file, so I'm only ge...
SamAnw General Coding Help 4 647 Feb-12-2020, 04:50 AM

User Panel Messages

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