Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Padlock of alphabetical strings
Post: RE: Padlock of alphabetical strings
Thx for this...I actually understood the logic of the other code you provided when I went through it yesterday. It was as simple as 1,2,3.
On the other hand, I was thinking that the assignment was ma... |
|
Men |
Homework |
11 |
4,042 |
Jan-14-2022, 09:46 PM |
|
|
Thread: Padlock of alphabetical strings
Post: RE: Padlock of alphabetical strings
First of all, understand that I am learning something that is completely new to me.
The logic that I apply is how it's translated from my head to the code. I don't fully understand
the structure of th... |
|
Men |
Homework |
11 |
4,042 |
Jan-14-2022, 04:36 AM |
|
|
Thread: Padlock of alphabetical strings
Post: RE: Padlock of alphabetical strings
K...switched things up again...
Close but no cigar...cheated a bit because I couldn't get my "op_count" variable to work so I just subtracted the numerical values from each other and got the steps and... |
|
Men |
Homework |
11 |
4,042 |
Jan-13-2022, 09:15 PM |
|
|
Thread: Padlock of alphabetical strings
Post: RE: Padlock of alphabetical strings
Ok, I did a little switching around.
Now more or less, I'm getting the desired output.
But the op_count incrementation is some how off.
The op_count is the number of steps backwards or forward requir... |
|
Men |
Homework |
11 |
4,042 |
Jan-13-2022, 03:44 PM |
|
|
Thread: Padlock of alphabetical strings
Post: Padlock of alphabetical strings
Hi guys,
This actually is not my homework assignment. It's someone else's that I thought to try and see if I could get it running.
I've coded it to the best of my abilities however, I know that there... |
|
Men |
Homework |
11 |
4,042 |
Jan-12-2022, 05:32 PM |
|
|
Thread: ord()
Post: RE: ord()
Thanks a lot that works great...now I have to figure out how to place it in a variable.
Cheers,
(Jan-12-2022, 06:46 AM)Gribouillis Wrote: Try
for i in range(104, 96, -1):
print(chr(i)) |
|
Men |
General Coding Help |
2 |
1,253 |
Jan-12-2022, 08:45 AM |
|
|
Thread: ord()
Post: ord()
Hi,
Quick question. coding in python...How do you continuously decrease an ord value until it reaches an n value?
for example: i have a ord value of 104 which is 'h' and want to move and change it t... |
|
Men |
General Coding Help |
2 |
1,253 |
Jan-12-2022, 04:38 AM |
|
|
Thread: Function - update record()
Post: RE: Function - update record()
Will do...I'll read up on it.
(Dec-28-2021, 06:28 PM)ibreeden Wrote: (Dec-28-2021, 05:54 PM)Men Wrote: Quick question though...if, else and elif always go together, how can it be for the "for loo... |
|
Men |
Homework |
9 |
2,565 |
Dec-28-2021, 09:04 PM |
|
|
Thread: Function - update record()
Post: RE: Function - update record()
Really!!! Is that an insult to my intelligence or what?
(Dec-28-2021, 06:16 PM)Larz60+ Wrote: If you do not get these results, you didn't copy correctly
Nevertheless, it's not running...I'll conti... |
|
Men |
Homework |
9 |
2,565 |
Dec-28-2021, 09:03 PM |
|
|
Thread: Function - update record()
Post: RE: Function - update record()
Nope...that doesn't work either. Returns the same output.
Quick question though...if, else and elif always go together, how can it be for the "for loop"?
(Dec-28-2021, 03:55 PM)ibreeden Wrote: The... |
|
Men |
Homework |
9 |
2,565 |
Dec-28-2021, 05:54 PM |
|
|
Thread: Function - update record()
Post: RE: Function - update record()
Hi Larz60,
Thank you very much but two things:
1. I don't know how but I copied and pasted code, however my output is the original list:
Output:Changing john's first name to jon and last name to sno... |
|
Men |
Homework |
9 |
2,565 |
Dec-28-2021, 03:33 PM |
|
|
Thread: Function - update record()
Post: Function - update record()
Hi guys,
I have half of this code running. It's the other half that's busting my brain.
On second thought, when I run it outside of the function the first half works. Inside the function...no clue b... |
|
Men |
Homework |
9 |
2,565 |
Dec-28-2021, 10:51 AM |
|
|
Thread: Homework - List containing tuples containing dicti
Post: RE: Homework - List containing tuples containing d...
Hi perfringo,
I acknowledge all your criticisms. However, do understand that:
1. This was an exercise provided to me by an instructor and my only task was to find my way out.
2. I'm still learning..... |
|
Men |
Homework |
4 |
2,025 |
Dec-28-2021, 12:37 AM |
|
|
Thread: Homework - List containing tuples containing dicti
Post: RE: Homework - List containing tuples containing d...
Geez man, You mean to tell me that I had this thing right the whole time!! **wall** .
I actually thought that it was supposed to come out horizontally instead of vertically and since it wasn't coming... |
|
Men |
Homework |
4 |
2,025 |
Dec-25-2021, 06:38 AM |
|
|
Thread: Homework - List containing tuples containing dicti
Post: Homework - List containing tuples containing dicti
Hi guys...I'm baaaaack!
I have a list that contains listed tuples and inside of each tuple there is a dictionary.
I have to access the dictionaries and get the 'last_name' from all the records and u... |
|
Men |
Homework |
4 |
2,025 |
Dec-25-2021, 12:31 AM |
|
|
Thread: Casino - Homework
Post: RE: Casino - Homework
Totally agree with your advice.
Like you so rightly said "Next time you have a programming assignment don't think about how to solve the problem using Python, think about how to solve the problem eff... |
|
Men |
Homework |
5 |
3,872 |
Dec-22-2021, 04:24 PM |
|
|
Thread: Casino - Homework
Post: RE: Casino - Homework
BashBedlam,
Thank you very much. This works perfectly.
As far as missing a loop is concerned...I think I missed more than that **tongue**.
Nevertheless, I understand the structure now. Because ini... |
|
Men |
Homework |
5 |
3,872 |
Dec-21-2021, 04:50 PM |
|
|
Thread: Casino - Homework
Post: Casino - Homework
Hi guys,
I have this assignment that I've been working on but my head has been **wall**. Was wondering if I could get some help solving it.
Thx in advance.
I basically have to create/define a func... |
|
Men |
Homework |
5 |
3,872 |
Dec-21-2021, 01:57 PM |
|
|
Thread: Temporarily storing the value of a function
Post: RE: Temporarily storing the value of a function
@Menator01: No, I didn't do that. I just went to the numpy site and copied the pip install file and pasted it in the atom terminal and it installed.
@GOTO10: atom is pointing to that directory but wh... |
|
Men |
General Coding Help |
6 |
2,824 |
Jun-21-2020, 06:43 PM |
|
|
Thread: Temporarily storing the value of a function
Post: RE: Temporarily storing the value of a function
Hey GOTO10...took your advice and upgraded to Py3.8.3 now the problem is numpy is not working.
Saying: ModuleNotFoundError: No module named 'numpy'
Where as the module is already installed. To make ... |
|
Men |
General Coding Help |
6 |
2,824 |
Jun-21-2020, 02:56 PM |