New to Python...and stuck with coding
The Coding Forum » Python
by doc_skjones
3w ago
Hello everyone, I am new to Python and I am trying to learn by playing around with datasets. I am trying to find sports centres with an average rating of more than 4 and rating count of more than 50. Could someone please offer some advice, thanks. Doc_skjones ..read more
Visit website
SwagOS
The Coding Forum » Python
by ThongaLonger69
3w ago
This is a Graphical Python app, that kind of acts as a low level operating system you run within your actual operating system, it is open source and free to download on GitHub Here ..read more
Visit website
How can I upload a tar.bz2 file to OpenStack swift object storage container using the Python swift client?
The Coding Forum » Python
by Hanginium2412
3w ago
I wrote a Python script that included the python-swiftclient module to connect to the OpenStack Object Storage and upload some files to the container after reading the python-swiftclient documentation: https://docs.openstack.org/python-swiftclient/latest/client-api.html It works great if I upload a file that ends with the extension .gz however, I'm getting some errors when it comes to the compressed file that ends with the extension .tar.bz2. I've included the Python script and the... Read more ..read more
Visit website
Python : Rock Paper Scissors Game
The Coding Forum » Python
by coolcomputersciencestuff
2M ago
Python : Rock Paper Scissors Game the source code is included ..read more
Visit website
How to use Densenet121 in monai
The Coding Forum » Python
by JuanHA00
2M ago
I have CT images (512x512x84) and the labels are those CT images but segmented after I used ITK_snap to "Paint" an specific tissue (Ocular tissue) , the image files are stored in train_images and the labels in Train_Labels, then i create a dictionary to which i create a dataset and apply the MONAI transforms , the issue is when i try to use densenet 121 or any other model, after the transforms I get that the tensor size is [1,1,512,512,1] , when i introduce this datasets into the model i... Read more ..read more
Visit website
Calculate rang and derang of ordering of subsets
The Coding Forum » Python
by general123
2M ago
We have all the subsets of the set {1, 2, ..., n} for some natural number n. We define the ordering of these subsets as follows: The empty set has rank 0. Following are all the sets whose smallest element is 1. These are first ordered by cardinality, and sets of the same cardinality are then ordered lexicographically. Following are all the sets whose smallest element is 2. These are first ordered by cardinality, and sets of the same cardinality are then ordered... Read more ..read more
Visit website
Opening and appending to file in Python3
The Coding Forum » Python
by jakey
2M ago
I am really enjoying myself learning Python3. But now i seem to have hit a brick wall and cannot find a way around it. I have been practicing the little i know of python3 with a simple little script called "practice.py" as follows: Code: #!/usr/bin/env python3 # practice = ["Billy", "John", "Peter", "Simon", "Kevin"] print(*practice, sep='\n') Which returned the following: Billy John Peter Simon Kevin Flushed with success i decided to add another name to the list "a"... Read more ..read more
Visit website
Opening and appending to file in Python3
The Coding Forum » Python
by jakey
2M ago
I am really enjoying myself learning Python3. But now i seem to have hit a brick wall and cannot find a way around it. I have been practicing the little i know of python3 with a simple little script called "practice.py" as follows: Code: #!/usr/bin/env python3 # practice = ["Billy", "John", "Peter", "Simon", "Kevin"] print(*practice, sep='\n') Which returned the following: Billy John Peter Simon Kevin Flushed with success i decided to add another name to the list using: Code ..read more
Visit website
Pointers in python?
The Coding Forum » Python
by Mattyp77
2M ago
Is there any way to get a variable to act like a pointer in python? Heres a little code to describe the gist of what Im trying to do. Python: name = 'Matt' score = 0 player = {'name': name, 'score': score} # This is what I want to act as a pointer # ******** FAKE GAME ********** score += 10 # 10 points added to score print(player) # This will not print out the updated score I know the correct way to go about this is to make it an object of a class but this is just a random example. Its not... Read more ..read more
Visit website
Remote SSH and Configuring code help
The Coding Forum » Python
by Louis16
2M ago
The following is my code to remotely connect to a network device (cisco router), It currently is not functional, but I don’t see any errors. It also needs to be able to "Configure a loopback and at least one other interface with an appropriate IP address on a router within your topology. Configure OSPF protocol on a network device within the topology and advertise appropriately. I have tried to run the code on Netlab to connect to the router remoutly, the connection intially works, but... Read more ..read more
Visit website

Follow The Coding Forum » Python on FeedSpot

Continue with Google
Continue with Apple
OR