Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: function-decorator , which is checking an access according to USERNAME
Post: RE: function-decorator , which is checking an acce...
(Feb-16-2024, 01:15 PM)deanhystad Wrote: This code belongs inside your is_auth() decorator
yesno = input(""" Input Y if you want to authorisate yourself or input N if you want to work as an anonyme ... |
|
Liki |
Homework |
6 |
548 |
Feb-16-2024, 11:50 PM |
|
|
Thread: function-decorator , which is checking an access according to USERNAME
Post: RE: function-decorator , which is checking an acce...
(Feb-16-2024, 10:52 AM)DPaul Wrote: Without checking the results, you call def has_access(func)
before you have defined it.
P.
Thank you.
the error
Input Y if you want to authorisate yourself or ... |
|
Liki |
Homework |
6 |
548 |
Feb-16-2024, 11:13 PM |
|
|
Thread: function-decorator , which is checking an access according to USERNAME
Post: function-decorator , which is checking an access a...
Hallo,
I'm asking for help for followed task:
"""
Realize a function-decorator , which is checking an access according to USERNAME
All USERNAMEs are saved as global in the List USERS
If User is agre... |
|
Liki |
Homework |
6 |
548 |
Feb-16-2024, 03:03 AM |
|
|
Thread: to find in dictionary given parameter 'name' and to output position
Post: RE: to find in dictionary given parameter 'name' a...
I would write in such way:
telefonbook = {
'52307': {'vorname': 'Max', 'name': 'Mustermann', 'adress': 'poststr. 15'},
'25758': {'vorname': 'Thom','name': 'Swenson', 'adress': 'bethastr. 37'}... |
|
Liki |
Homework |
10 |
1,359 |
Oct-05-2023, 12:13 AM |
|
|
Thread: to find in dictionary given parameter 'name' and to output position
Post: RE: to find in dictionary given parameter 'name' a...
ibreeden, deanhystad, buran - I'll work through your answers ('entry' corrsep PEP, etc.) , It'll take a little time. **shy**
Thank you! |
|
Liki |
Homework |
10 |
1,359 |
Oct-04-2023, 10:03 PM |
|
|
Thread: to find in dictionary given parameter 'name' and to output position
Post: RE: to find in dictionary given parameter 'name' a...
Thank you all very much for helping and intuition!
Yes, what I wanted was: to print out all parameters from the corresponding line if I give the parameter 'name" belongs to the line.
I've let run th... |
|
Liki |
Homework |
10 |
1,359 |
Oct-04-2023, 09:53 PM |
|
|
Thread: to find in dictionary given parameter 'name' and to output position
Post: to find in dictionary given parameter 'name' and t...
Hello!
Given ist the dictionary "telefonbook" with telefon-Nr. as the key, and with vorname, name, adress as the parameters to the keys.
I'm trying to write a programm which with the funktion "searc... |
|
Liki |
Homework |
10 |
1,359 |
Oct-03-2023, 01:26 AM |
|
|
Thread: Installing packages of Conda / Miniconda
Post: RE: Installing packages of Conda / Miniconda
(Sep-19-2023, 09:07 PM)snippsat Wrote: (Sep-19-2023, 08:44 PM)Liki Wrote: 1. If I will close the cmd now: can I open Jupiterlab
a) without cmd from my PC now?:No,you always start for command line... |
|
Liki |
Data Science |
12 |
2,426 |
Sep-19-2023, 10:20 PM |
|
|
Thread: Installing packages of Conda / Miniconda
Post: RE: Installing packages of Conda / Miniconda
(Sep-19-2023, 07:22 PM)snippsat Wrote: (Sep-19-2023, 07:06 PM)Liki Wrote: I'm trying so, but so I can not activate 'myenv'It only activate myenv so when you are in (base).
(base) C:\ProgramData\mi... |
|
Liki |
Data Science |
12 |
2,426 |
Sep-19-2023, 08:52 PM |
|
|
Thread: Installing packages of Conda / Miniconda
Post: RE: Installing packages of Conda / Miniconda
https://share-your-photo.com/9297bf16d8 (Sep-19-2023, 07:22 PM)snippsat Wrote: (Sep-19-2023, 07:06 PM)Liki Wrote: I'm trying so, but so I can not activate 'myenv'It only activate myenv so when you ... |
|
Liki |
Data Science |
12 |
2,426 |
Sep-19-2023, 08:30 PM |
|
|
Thread: Installing packages of Conda / Miniconda
Post: RE: Installing packages of Conda / Miniconda
thank you.
wanted is on this step: to start ipython-shell and jupiter-Notebook.
I started today cmd as admin and activated (base) succesfull.
but the activating myenv didn't run today:
C:\ProgramDa... |
|
Liki |
Data Science |
12 |
2,426 |
Sep-19-2023, 07:06 PM |
|
|
Thread: Installing packages of Conda / Miniconda
Post: RE: Installing packages of Conda / Miniconda
My futher steps:
(base) C:\ProgramData\miniconda3>conda install ipython
Retrieving notices: ...working... done
Collecting package metadata (current_repodata.json): done
Solving environment: done
... |
|
Liki |
Data Science |
12 |
2,426 |
Sep-19-2023, 01:27 AM |
|
|
Thread: Installing packages of Conda / Miniconda
Post: RE: Installing packages of Conda / Miniconda
(Sep-18-2023, 12:27 PM)snippsat Wrote: The Anaconda prompt should activate (base) environment,now it does not something is wrong.
A environment most always be activated (base),now can install or mak... |
|
Liki |
Data Science |
12 |
2,426 |
Sep-19-2023, 12:51 AM |
|
|
Thread: Installing packages of Conda / Miniconda
Post: Installing packages of Conda / Miniconda
Hallo,
I've bought an Book "Data Science mit Python" and I'm trying to install necessary programms and featurs.
At first i installed
http://conda.pydata.org/miniconda.html
and I can see it in start-... |
|
Liki |
Data Science |
12 |
2,426 |
Sep-18-2023, 11:50 AM |
|
|
Thread: to call via console a python-programm
Post: RE: to call via console a python-programm
Thank you. So was it solved:
[Image: https://i.imgur.com/vz65ow3.jpg] |
|
Liki |
General Coding Help |
9 |
3,253 |
Nov-21-2020, 10:19 PM |
|
|
Thread: to call via console a python-programm
Post: RE: to call via console a python-programm
[Image: https://i.imgur.com/irdFuTC.jpg] |
|
Liki |
General Coding Help |
9 |
3,253 |
Nov-21-2020, 03:00 AM |
|
|
Thread: to call via console a python-programm
Post: RE: to call via console a python-programm
The file zeit_01 is here:
[Image: https://i.imgur.com/3MtzS3F.jpg]
and I did so:
[Image: https://i.imgur.com/e7QJoXK.jpg]
but...
In the book are followed additional options offered:
C:\pytho... |
|
Liki |
General Coding Help |
9 |
3,253 |
Nov-21-2020, 02:54 AM |
|
|
Thread: to call via console a python-programm
Post: RE: to call via console a python-programm
I think so I've called the python3.9.0 via console:
[Image: https://i.imgur.com/VxXx98s.jpg]
I would like to ask how could I call the file zeit_01.py via console? |
|
Liki |
General Coding Help |
9 |
3,253 |
Nov-21-2020, 02:03 AM |
|
|
Thread: to call via console a python-programm
Post: RE: to call via console a python-programm
Thank you.
(Nov-21-2020, 01:27 AM)bowlofred Wrote: Try opening a new cmd window and run python -V. It should show a version number and then you can try to run your program.
[Image: https://i.imgur... |
|
Liki |
General Coding Help |
9 |
3,253 |
Nov-21-2020, 01:42 AM |
|
|
Thread: to call via console a python-programm
Post: to call via console a python-programm
Hello,
I'm trying to call an in Python frish-written programm zeit_01 via console.
It didn't run. What I did false?:
[Image: https://i.imgur.com/Wp6wDxY.jpg]
one step more:
[Image: https://i.i... |
|
Liki |
General Coding Help |
9 |
3,253 |
Nov-21-2020, 01:10 AM |