Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Linear search issue
Post: RE: Linear search issue
Hi, I managed to get it. Question: How do I get rid of the brackets in the output?
from random import randrange
number_range = 500
values = []
search = 0
found_indexes = []
#generate random values... |
|
oli_action |
Homework |
5 |
2,446 |
Oct-12-2020, 10:38 PM |
|
|
Thread: Linear search issue
Post: RE: Linear search issue
(Oct-12-2020, 08:41 AM)DPaul Wrote: You are making it difficult for yourself :-)
I would replace your while loop, because there will be only one "True",
and your counting is only for mismatches.
J... |
|
oli_action |
Homework |
5 |
2,446 |
Oct-12-2020, 08:05 PM |
|
|
Thread: Linear search issue
Post: Linear search issue
Hi everyone,
I wrote this code for a linear search. I would like the loop to keep running until all the positions of the number entered are found, but the loop gets interrupted once the first positio... |
|
oli_action |
Homework |
5 |
2,446 |
Oct-12-2020, 07:36 AM |
|
|
Thread: remove .0
Post: RE: remove .0
Hello scidam. Thanks for the quick reply. Both are cool. Would you recommend to do this though or is it just a matter of preference? |
|
oli_action |
Homework |
3 |
1,947 |
Sep-29-2020, 12:13 PM |
|
|
Thread: remove .0
Post: remove .0
Hey everyone. I've written this code. It all works fine except the answer always has a .0 . The answer is correct, but is there a way to get rid of the .0? Thanks
number_1 = 1
number_2 = 1
enter ... |
|
oli_action |
Homework |
3 |
1,947 |
Sep-29-2020, 10:51 AM |
|
|
Thread: Master's/PHD for Data Science Job
Post: Master's/PHD for Data Science Job
Hey everyone,
I recently spoke to a friend of the family who is a lead developer(45). I told him I am really interested in data science. He looks up at me and says:
well, you better get a master's... |
|
oli_action |
News and Discussions |
4 |
5,518 |
Sep-26-2020, 11:47 AM |
|
|
Thread: First Python Project
Post: First Python Project
Hi everyone,
I completed the python beginner and intermediate level tutorial and I want to start working on my own projects. Easier said than done! I am really struggling to start a project on my own... |
|
oli_action |
News and Discussions |
1 |
1,403 |
Sep-21-2020, 10:20 AM |
|
|
Thread: Good free textbooks/pdf's for Beginners
Post: RE: Good free textbooks/pdf's for Beginners
Hi, I purchased the Head First Python edition. It helped me a lot! |
|
oli_action |
News and Discussions |
2 |
1,936 |
Sep-21-2020, 09:51 AM |
|
|
Thread: Ceaser cipher program
Post: RE: Ceaser cipher program
Hi guys, yea I got it. Not sure if this is the optimal way, but it works. Thanks again for the help :)
def caesar(message):
print("Caesar Decryption:")
value = 1
for letter in message:
... |
|
oli_action |
Homework |
5 |
2,870 |
Sep-14-2020, 10:43 AM |
|
|
Thread: Ceaser cipher program
Post: RE: Ceaser cipher program
Hi Larz60+
thanks for the quick reply. That has the same output as my original code though. The user must be able to add his/her own message to encrypt. What is most important though is that the out... |
|
oli_action |
Homework |
5 |
2,870 |
Sep-10-2020, 08:31 AM |
|
|
Thread: Ceaser cipher program
Post: Ceaser cipher program
Hi eveyone,
I'm currently working on a ceasar cipher project. I pretty much have the basic structure down and the program is able to auto-encrypt the input ( given text ) by +1 position. I can change... |
|
oli_action |
Homework |
5 |
2,870 |
Sep-09-2020, 09:36 AM |
|
|
Thread: multiple number format conversion
Post: RE: multiple number format conversion
Thanks for the infos guys. Im not that far ahead yet though. I eventually got it after 8 hrs of staring at my white board. **hitthewall**
Only thing I haven't been able to do though is limit the ta... |
|
oli_action |
General Coding Help |
4 |
2,582 |
Aug-10-2020, 05:36 PM |
|
|
Thread: multiple number format conversion
Post: multiple number format conversion
Hi everyone, please help! Below is a code I created for the conversion of decimal into binary. Now I want to expand the code so that the user can choose any number format( I only want to use base numb... |
|
oli_action |
General Coding Help |
4 |
2,582 |
Aug-10-2020, 07:43 AM |
|
|
Thread: Property price calculation
Post: RE: Property price calculation
Thanks for the quick reply @palladium. Sorry I explained badly here. Let me try it like this:
length = int(input("Please add the length of the property: "))
width = int(input("Please add the width of... |
|
oli_action |
General Coding Help |
4 |
3,172 |
Jul-15-2020, 02:08 PM |
|
|
Thread: Property price calculation
Post: Property price calculation
Hi. I'm a beginner stuck with a problem and need help please. I need to calculate the total property size ( width and length ) and then the total cost of the property. I need to print the final proper... |
|
oli_action |
General Coding Help |
4 |
3,172 |
Jul-15-2020, 11:53 AM |
|
|
Thread: string slicing help
Post: RE: string slicing help
|
oli_action |
General Coding Help |
2 |
2,197 |
Mar-22-2020, 09:57 AM |
|
|
Thread: string slicing help
Post: string slicing help
Hi guys,
I'm new to coding and i've started teaching myself Python and am currently learning "string slicing".
I need help with the following:
guitars = 'gibson | fender | ibanez'
guitars.index("|... |
|
oli_action |
General Coding Help |
2 |
2,197 |
Mar-22-2020, 09:16 AM |