Excuse please, my failure. As I have not been following this discussion, why is
the subject "Python List Is NOT Dead" a subject for discussion? Has the list
been moving towards closing?
KMW
***
"When you pass through the waters, I will be with you:
break (Old_MacDonald:23 | name[indx] == 'd', indx = 4), based on the doc spec
in python.org (https://docs.python.org/3/library/pdb.html#debugger-commands)
Cell In[1], line 20
break (Old_MacDonald:23 | name[indx] == 'd', indx = 4)
^
SyntaxError: invalid syntax
I got one blan
sweep over you. When you walk through the
fire, you will not be burned: the flames will not set you ablaze."
Isaiah 43:2
- Forwarded Message ----- From: Kevin M. Wilson via Python-list
To: python-list@python.org
Sent: Tuesday, May 28, 2024 at 10:35:23 PM MDTSubject:
Fl
The following is my effort to understand how to process a string, letter, by
letter:
def myfunc(name): index = 0 howmax = len(name) # while (index <=
howmax): while (index < howmax): if (index % 2 == 0):
print('letter to upper = {}, index {}!'.format(name[index]
e."
Isaiah 43:2
On Thursday, May 25, 2023 at 05:55:06 PM MDT, Kevin M. Wilson via
Python-list wrote:
Ok, I'm not finding any info. on the int() for converting a str to an int
(that specifies a base parameter)?! The picture is of the code I've written...
And the
We can first convert the string representation of float into float using
float() function and then convert it into an integer using int().So, why can't
a string of an integer be converted to an integer, via
print(int(str('23.5')))???
Perplexed
| print(int(float('23.5'))) |
"When you pas
Ok, I'm not finding any info. on the int() for converting a str to an int (that
specifies a base parameter)?! The picture is of the code I've written... And
the base 10 paradigm involved?? years = int('y') # store for
calculationValueError: invalid literal for int() with base 10: 'y'What is mean
"When you pass through the waters, I will be with you: and when you pass
through the rivers, they will not sweep over you. When you walk through the
fire, you will not be burned: the flames will not set you ablaze."
Isaiah 43:2
| | Virus-free.www.avg.com |
--
https://mail.python.org/m
Hi... How do I set Pycharm to find only syntax errors?!!
"When you pass through the waters, I will be with you: and when you pass
through the rivers, they will not sweep over you. When you walk through the
fire, you will not be burned: the flames will not set you ablaze."
Isaiah 43:2
| |
Folks, help please! What the @#$! are these doing popping up. Code styles are
personal, and not subject to debate.Where can I edit these out of my IDE?
Kevin
"When you pass through the waters, I will be with you: and when you pass
through the rivers, they will not sweep over you. When you walk th
Greetings, I'm in a bit of a quandary, I want some strict syntax errors
to be flagged, but the use of single quotes vs double quotes! NOT what I need
from the 'checker', you dig? As I've recently returned to the IDE, and no
longer have the
"stones" for bull, how do I set up the kind of "
u: and when you pass
through the rivers, they will not sweep over you. When you walk through the
fire, you will not be burned: the flames will not set you ablaze."
Isaiah 43:2
On Tuesday, April 18, 2023 at 11:17:52 PM MDT, Kevin M. Wilson via
Python-list wrote:
print (f'
aze."
Isaiah 43:2
On Tuesday, April 18, 2023 at 06:44:37 PM MDT, aapost
wrote:
On 4/18/23 19:18, Kevin M. Wilson wrote:
>Why complain about a 'comma', or a ')'???
> print (f'"I am thinking of a number between 1 to {LIMIT}\n")
my
Greetings... Kevin here:I need help, as you have guessed!I have this line: The
Print Statement... Why complain about a 'comma', or a ')'???def play_game():
number = random.randint(1, LIMIT)
print (f'"I am thinking of a number between 1 to {LIMIT}\n")Or is this a
setting in the IDE, I need
C:\Users\kevin\PycharmProjects\Myfuturevalue\venv\Scripts\python.exe
C:\Users\kevin\PycharmProjects\Myfuturevalue\FutureValueCal.py File
"C:\Users\kevin\PycharmProjects\Myfuturevalue\FutureValueCal.py", line 31
elif (years > 50.0) or (years < 1.0) : ^IndentationError: expected an
indent
future_value = 0
for i in range(years):
# for i in range(months):
future_value += monthly_investment
future_value = round(future_value, 2)
# monthly_interest_amount = future_value * monthly_interest_rate
# future_value += monthly_interest_amount
# display the result
print(f"Year =
MS Edge settings are displayed in the first picture, the error I encountered is
the second picture...not sure how I get around this!I reloaded the browser
after checking the settings for JavaScript...confused.
Kevin
Good sense makes one slow to anger, and it is his glory tooverlook an off
Greetings Python coders,
I have installed the Pycharm IDE, and upon successfully auto
install of the path/environment statements.
The IDE opened and displayed (bottom right corner):
The use of Java options environment variables detected.
Such variables override IDE configuration files
Hey Community, Is there a site where I might/can download a version of
Tkinter for Python 2.7?
Seriously, KMW
John 1:4 "In him was life; and the life was the light of men."
--
https://mail.python.org/mailman/listinfo/python-list
My employer has hundreds of scripts in 2.7, but I'm writing new scripts in 3.9!
I'm running into 'invalid syntax' errors.I have to maintain the 'Legacy' stuff,
and I need to mod the path et al., to execute 3.7 w/o doing damage to the
'Legacy' stuff...IDEA' are Welcome!
KMW
John 1:4 "In him was
Set i = 0 at the begin of the code, that way each entry starts at Logical 0 of
the array/container/list...
"The only way to have experience is by having the experience"!
On Sunday, February 7, 2021, 12:56:40 PM MST, Karsten Hilbert
wrote:
Am Sun, Feb 07, 2021 at 07:47:03PM + schr
for path, dir, files in os.walk(myDestinationFolder):
# for path, dir, files in os.walk(destfolder):
print('The path is %s: ', path)
print(files)
os.chdir(mySourceFolder)
if not os.path.isfile(myDestinationFolder + file):
# if not os.path.isfile(destfolder + file):
prin
Good news. I've fixed it up and all seems to be well.
Thanks, all. I've learned a lot from this :)
John Machin wrote:
> Kevin M wrote:
> > Inline
> >
> > > 1.) Why are you removing the .pyc file?
> >
> > After I had run the script once and subseq
Inline
> 1.) Why are you removing the .pyc file?
After I had run the script once and subsequently changed the class
file, I would run the script again, and it would use the pyc file from
the older revision of the script. I got frustrated with having to
manually delete the pyc file before rerunnin
Figures. I'll try to complicate it sufficiently ;)
[edit] I was going to try to sum up what goes on, but I realized that I
was retyping what I already programmed in an effort to better
illustrate exactly what I'm doing. Pastebin it is. Don't fear, it's
only around 200 lines total.
Class file --
25 matches
Mail list logo