[05:31:03] Morning [12:03:23] hi [14:23:30] b1ack0p: How are you doing? [14:26:10] hi RhinosF1 thx [14:26:21] i am reading a pdf book about python [14:26:34] how r u? [14:26:59] b1ack0p: Good - Passed Task 3 [14:28:24] thx [14:42:57] i hate reading book on computer :/ [14:43:08] i prefer physical paper books [14:43:51] b1ack0p: I vary [14:44:05] It's hard to stare for long times at computers [14:53:24] i dont have printer. if i had i would print 244 pages [15:12:33] b1ack0p: :) [15:38:01] r = int(input("enter radius")) [15:38:01] pi = 3.14 [15:38:01] print((3/4)*pi*(r**3)) [15:38:06] is this correct? [15:38:10] calculating volume of sphere [15:39:38] actually it will be (4/3).pi.r^3 [15:41:11] pi = 3.14 [15:43:34] r = int(input("enter radius")) [15:43:34] pi = 3.14 [15:43:34] volume = (4/3)*pi*(r**3) [15:43:35] print(volume) [15:43:38] this is better [15:47:50] It might work - Not sure about cubing it - Task3 is writing to files and reading them. [15:48:18] it works [15:48:35] what about Task3 ? [15:48:59] b1ack0p: Task 4 even when I put it on [15:49:09] ok [16:51:48] how could you formulize this in python? : [16:51:52] If I leave my house at 6:52 am and run 1 mile at an easy pace (8:15 per mile), then 3 miles at tempo (7:12 per mile) and 1 mile at easy pace again, what time do I get home for breakfast? [16:53:44] easy = 8*60+15 [16:53:57] tempo = 7*60+12 [16:57:02] easy = 8*60+15 [16:57:02] tempo = 7*60+12 [16:57:02] breakfastt1_seconds= 2*easy + 3*tempo [16:57:02] breakfastt2_min = breakfastt1_seconds / 60 [16:57:02] print(breakfastt2_min) [16:57:17] = 38:10 [16:58:18] so 6:52 + 38:10 = 7:30:10 [17:00:31] That code looks fine [17:00:42] but cant get exact time [17:00:50] so 6:52 + 38:10 = 7:30:10 [17:00:54] not sure about this [17:01:08] result of my code in minutes shows 38.10 [17:01:16] Yeah, Look up the time function in python [17:01:22] That might be needed [17:01:35] no i am still at the beginning of the book [17:01:51] pg 37 [17:02:00] didnt mention about time functions [17:02:13] it should be simple calculation as above i guess [17:04:17] b1ack0p: I'm not sure what book it is but I'm thinking time () would be needed. [17:04:59] http://greenteapress.com/thinkpython2/thinkpython2.pdf [17:05:01] this book [17:30:48] b1ack0p: Bear in mind adding times isn't a decimal system [17:30:58] There being 60 mins in a hour, not 100 [17:31:54] ShakespeareFan00: That's why I thought it might need time () [17:32:45] I ran into issues about non-decimal places when dealing with latitude calculations as well [17:35:54] yes i added minutes manual [17:35:59] as 60 [17:36:13] functions are hard to understand in book [17:36:21] b1ack0p : Also see - http://www.pressthered.com/adding_dates_and_times_in_python/ [17:36:22] [ Adding Dates and Times in Python | Pressing the Red Button ] - www.pressthered.com [17:36:47] https://docs.python.org/3/library/datetime.html being the offical documentation [17:36:47] [ datetime — Basic date and time types — Python 3.7.3 documentation ] - docs.python.org [17:37:07] got it [17:38:01] RhinosF1: Railway chainages are another non-decimal place system [17:38:18] There being 80 chains to a mile. :) [17:38:44] ShakespeareFan00: Interesting [17:40:36] The UK national rail network still uses Miles and Chains. [17:40:51] Most metros however have gone metric :) [17:48:42] is it possible to create ios/android apps with python? [17:49:32] by learning only python can i make many things possible? [17:49:41] without need other languages? [17:50:11] i dont have much time to learn many things so i want to focus only 1 thing by now [17:52:36] b1ack0p: You can make a lot of things. NASA use python but not android apps - not sure on iOS [17:53:21] cant i do android or ios with python? [17:53:25] hmm [17:53:40] b1ack0p: iOS apps can be done [17:53:53] but NASA uses other languages too not only python [17:53:56] linux also same [17:54:03] ubuntu written by mostly C [17:55:34] b1ack0p: Diffrent things can be made using different languages [17:56:46] https://www.openhub.net/p/ubuntu/analyses/latest/languages_summary [17:56:47] [ The Ubuntu Open Source Project on Open Hub: Languages Page ] - www.openhub.net [17:57:05] only 0.5% python [17:57:27] even HTML used more lol 1.8% [17:58:03] can i learn easily C if i learn Python? [17:59:42] b1ack0p: Your looking at one peice of software. Python is one of the most simple but still high level languages. [18:00:06] yes [18:26:20] !getinfo [18:27:56] !getinfo [18:31:42] !getinfo [18:33:07] !getinfo [20:10:58] what r u doing? [20:11:02] so quiet everywhere [20:13:18] b1ack0p: Watching Have I got news for you? [20:16:12] ok [23:21:06] good nite