Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,153,544 members, 7,819,934 topics. Date: Tuesday, 07 May 2024 at 07:03 AM |
Nairaland Forum / Fleshbone's Profile / Fleshbone's Posts
(1) (2) (3) (4) (5) (of 5 pages)
Programming / Re: CBT In Python. V2 By Fleshbone by fleshbone(m): 6:05pm On May 28, 2017 |
The Book. (Slide) am using for learning the GUI is 'An Introduction to GUI programming with Tkinter - Erik Spence' |
Programming / Re: CBT In Python. V2 By Fleshbone by fleshbone(m): 5:59pm On May 28, 2017 |
kayoph: Here is the code Kayoph wants to display.
|
Programming / Re: CBT In Python. V2 By Fleshbone by fleshbone(m): 2:31pm On May 28, 2017 |
TheLordIsGr8: Sorry I didn't expect it to show that way. Here is an html tag for code '<code>paste your code in here</code>'. But instead of '<' use '['. And for '>', Use ']'. |
Programming / Re: CBT In Python. V2 By Fleshbone by fleshbone(m): 1:02pm On May 28, 2017 |
kayoph: use this tag paste your code here |
Programming / Re: Python CBT Program by fleshbone(m): 4:19am On May 28, 2017 |
airsaylongcon: We're actually just learning here. Anyone is allowed to take it to another level! |
Programming / Re: CBT In Python. V2 By Fleshbone by fleshbone(m): 3:11am On May 28, 2017 |
kayoph: We are actually all learning. Would love to see ur version of the program anyway so we can all get beTter. Thank to you too. Am currently reading a book about GUI Using Tkinter module. I would come up with something soon. |
Programming / Re: CBT In Python. V2 By Fleshbone by fleshbone(m): 8:09pm On May 27, 2017 |
pythonkid: Sorry sir, I don't know how to send private messages here. |
Programming / Re: CBT In Python. V2 By Fleshbone by fleshbone(m): 5:03pm On May 27, 2017 |
This is impressive boss (phililp) Am not on a pc now, I would go through it better later in the day when am back home. Kudos. antieverything should see this. Am sure he has a lot to share too. |
Islam for Muslims / Re: Why Will Sultan Always Be The One To Declare Fasting For A Whole Nation..? by fleshbone(m): 4:18pm On May 27, 2017 |
Because in Islam, a movement without a leader is one of hypocrites. Everyone is tasked with sighting the moon. But the leader okays it provided the person who sighted it can be trusted. The month is used to count daYs and a new moon signifies a new month. The Sultan as the leader then gives a go ahead. If he doesn't, Fasting can't commence. 24 Likes |
Islam for Muslims / Re: Ramadan Fasting; Saudi Arabia Announces Date For Commencement by fleshbone(m): 7:54am On May 26, 2017 |
Saudi Arabia is not the birth place of Islam. Islam has always being there away from the arabian peninsula. Masha Allah. Ramadan is finally here again! 2 Likes 1 Share |
Programming / Re: Help Me! I Need An IDE by fleshbone(m): 12:12am On May 23, 2017 |
phililp: I use IDLE 2.7. But you should download IDLE 3 since you use Python 3 to program. |
Programming / Re: Python CBT Program by fleshbone(m): 8:21am On May 22, 2017 |
antieverything:Thanks a lot. |
Programming / Re: Python CBT Program by fleshbone(m): 5:59am On May 22, 2017 |
antieverything This is quite impressive, thanks for sharing the knowledge of regular expression on python. And the 'escape newline', please does that work on python 2.7? Very impressive bro. Thanks for sharing once more |
Programming / Re: Python CBT Program by fleshbone(m): 7:12pm On May 21, 2017 |
phililp: Yes Sir! Worked pretty well! 1 Like |
Programming / Python CBT Program by fleshbone(m): 6:15pm On May 21, 2017 |
Hello Python friends I created a CBT program with Python. I would be glad to learn how to do more with few codes. I also think some of us can learn from it too.
---------------------------------------------------------------------------------------------------------- This I wrote with Python 2.7 If I successfully build the desktop application version of it using TKInter module, I shall post it here as well God Willing. phililp am sure you can easily re-write this into Python 3. Anyone who can Should please re-write this into python 3 so we can all learn. Cheers. |
Programming / Re: I Want A Skilled Developer To Join Me On A Project! by fleshbone(m): 8:35am On May 20, 2017 |
king37: With all due respect, I hate to say this. But you can lie my guy. 8 Likes |
Celebrities / Re: Moji Olaiya's Last Post On Instagram Before Her Death (Photos) by fleshbone(m): 9:55am On May 18, 2017 |
RIJF 1 Like |
Programming / Re: Please Help, Browsers Can't Find My External Css by fleshbone(m): 8:55pm On May 15, 2017 |
Like the above Poster said, clear the cache! Also make sure the link to the css file is in this 'http://the-css-link'. Best of luck |
Programming / Re: My Python Guessing Game... Pythonistas Please Come In by fleshbone(m): 12:08pm On May 15, 2017 |
phililp: Lols! U're always welcome. Am glad I was useful. |
Programming / Re: My Python Guessing Game... Pythonistas Please Come In by fleshbone(m): 12:19pm On May 14, 2017 |
phililp: Hahahahahaha. Calm down bro! Yes.! Key is kind of the name and value the data associated to key. In PHP the dict() is called an associative array. The easiest way out as for me, is to get the random key once. Say 'Key = random.choice(my_dictionary.keys())' This ('Key') we understand would hold a random key from the dictionary. If you agree with the above, then to display the description associated with this Key 'Value = my_dictionary[str(Key)]' Note: Very important you convert the key to a string where Key is the random key we initialized above. Print (Value) 'User_input = input()' If you get some error with above then use 'User_input = raw_input()' For the test, 'If user_input == Key:' I seriously my explaination is good enough I'll be waiting Phililp |
Programming / Re: My Python Guessing Game... Pythonistas Please Come In by fleshbone(m): 1:48pm On May 13, 2017 |
phililp: Oh agreed! That's why after the sleep (to cause a delay in seconds) The print(my_dict[item_description]) come to display the value of the random key. Study the codes carefully again bro Phililp |
Programming / Re: My Python Guessing Game... Pythonistas Please Come In by fleshbone(m): 11:57pm On May 12, 2017 |
silento is right bro!!! Here's what i did with my 2.7 though and it worked perfectly. go through it and i hope you get the best out of it. import random from time import time,sleep my_dict = dict() my_dict['mango'] = '''green when unripe and yellow when riped.. has one seed. hipogeal type seed germination''' my_dict['apple'] = '''Look kinda speriacl... has many seeds. looks green when unripe; some looks red some yellow some still green''' print('I will describe the fruit and you will say its name') item_description = random.choice(my_dict.keys()) sleep(1) print(my_dict[item_description]) chances = 5 my_guess ='' while True: ---if chances != 0: ------print('Enter your Guess') ------user_guess = (raw_input()) ------if user_guess == item_description: ---------print ('correct! you only used', 6 - chances, 'chance') ---------break ------else: ---------chances -= 1 ---------print ('Sorry, try again. You have', chances, 'chances left') ---else: ------print('Sorry, you\'ve run out of chances to guess. yor have', 0, 'guesses left') ------break ---------------------------------------------------------------------------------------------------------------- best of luck phililp boss meanwhile, dont forget that when you have a chance left, it should be "1 chances left". |
Programming / Re: Already Exist Dont Display 3000 k naira for who can solve it by fleshbone(m): 4:13pm On May 04, 2017 |
Programming / Re: Already Exist Dont Display 3000 k naira for who can solve it by fleshbone(m): 3:34pm On May 04, 2017 |
Its sad I couldn't help. I have no idea about PDO. |
Programming / Re: Already Exist Dont Display 3000 k naira for who can solve it by fleshbone(m): 4:59pm On May 03, 2017 |
skyhighweb: Then there must be a problem with ur foreach statement. Check the foreach statement again. Fetch the buyer into an associative_array, and tagged into another. Try using this method (in_array()) in the code. Foreach (buyer as buyer_value){ If ( in_array(buyer_value, tagged)){ Echo buyer_value.' In tagged'; } Else{ Echo 'no buyer element in tagged' } } This should work. Please study carefully and apply. Thanks |
Programming / Re: Already Exist Dont Display 3000 k naira for who can solve it by fleshbone(m): 4:13pm On May 03, 2017 |
skyhighweb: Am not good with object oriented aspect of mysqli. Am sorry I don't understand some few syntax above! |
Programming / Re: Already Exist Dont Display 3000 k naira for who can solve it by fleshbone(m): 2:49pm On May 03, 2017 |
skyhighweb: The code should be shorter then: $select_statement = "select * from table_name"; $result_statement = mysqli_query($db_connection, $select_statement); If(mysqli_num_rows($result_statement) > 0){ $column1 = mysqli_fetch_assoc($result_statement['column_name1']); $column2 = mysqli_fetch_assoc($result_statement['column_name2']); } Else{ Echo "Zero Rows in table1" } Foreach ($column1 as $data_held){ If in_array($data_held, $column2){ Echo 'yes' //this will echo yes each time it encounter any. } Else{ Echo 'No' // for each that wasn't found. } } Try this then. |
Programming / Re: Already Exist Dont Display 3000 k naira for who can solve it by fleshbone(m): 1:28pm On May 03, 2017 |
skyhighweb:Its being a while I did php/mysqli. Assuming u hav ur db connection setup already! $select_statement = "select * from table_name"; $result_statement = mysqli_query($db_connection, $select_statement); If(mysqli_num_rows($result_statement) > 0){ $all_table = mysqli_fetch_assoc($result_statement); } Else{ Echo "Zero Rows in table1" } $select_statement2 = "select * from table_name2"; $result_statement2 = mysqli_query($db_connection, $select_statement2); If(mysqli_num_rows($result_statement2) > 0){ $all_table2 = mysqli_fetch_assoc($result_statement2); } Else{ Echo "Zero Rows in table2" } Foreach ($all_table1['column_name'] as $data_held){ If in_array($data_held, $all_table2['column_name']){ Echo 'yes' //this will echo yes each time it encounter any. } Else{ Echo 'No' // for each that wasn't found. } } Try this, I hope it helps, I haven't tried it though. |
Programming / Re: Already Exist Dont Display 3000 k naira for who can solve it by fleshbone(m): 11:36am On May 03, 2017 |
Fetch both table as an associative array. Then use: For each element in array 1; Use in_array() to check if it appears in array2 Goodluck skyhighweb. |
Programming / Re: I Want To Learn Programming On My Own, Where Do I Start? by fleshbone(m): 7:23pm On May 02, 2017 |
Python is quite easy and its Object Oriented Programming. The language with the easiest syntax I've seen is SQL. Try it as well, though its database related. |
Programming / Re: I Want To Learn Programming On My Own, Where Do I Start? by fleshbone(m): 7:23pm On May 02, 2017 |
Python is quite easy and its Object Oriented Programming. The language with the easiest syntax I've seen is SQL. Try it as well, though its database related. |
Programming / Re: I Want To Learn Programming On My Own, Where Do I Start? by fleshbone(m): 7:21pm On May 02, 2017 |
Python is quite easy and its Object Oriented Programming. The language with the easiest syntax I've seen is SQL. Try it as well, though its database related. |
(1) (2) (3) (4) (5) (of 5 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 70 |