Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Visual Studio for Python
Post: RE: Visual Studio for Python
I've been watching some videos on YouTube and if I am understanding correctly you can download something called Iron Python and install it into Visual Studio, and you can use WinForms or Windows Prese... |
|
357mag |
News and Discussions |
3 |
64,380 |
May-17-2023, 02:13 AM |
|
|
Thread: Visual Studio for Python
Post: Visual Studio for Python
Just wondering what IDE you guys are using? I'm using WingWare which appears quite good. I was wondering if any of you are using Visual Studio for Python. Not Visual Studio Code, but the regular Visua... |
|
357mag |
News and Discussions |
3 |
64,380 |
May-16-2023, 10:06 PM |
|
|
Thread: How do you get Python to print just one value in a list?
Post: RE: How do you get Python to print just one value ...
I think I got it.
numbers[2] |
|
357mag |
General Coding Help |
3 |
1,013 |
May-14-2023, 07:30 PM |
|
|
Thread: How do you get Python to print just one value in a list?
Post: How do you get Python to print just one value in a...
If I just want Python to print the value in a certain index position in list how do I do it?
This is not giving me what I want:
numbers = [2, 4, 6, 8]
print ([0])
|
|
357mag |
General Coding Help |
3 |
1,013 |
May-14-2023, 07:20 PM |
|
|
Thread: Trying to understand global variables
Post: RE: Trying to understand global variables
Why the brackets around the number? |
|
357mag |
General Coding Help |
5 |
1,122 |
May-12-2023, 03:35 PM |
|
|
Thread: Trying to understand global variables
Post: RE: Trying to understand global variables
(May-12-2023, 05:58 AM)deanhystad Wrote: Not modify, assign.
In Python you create a variable when you do assignment. By default, the variable is created in the context where the assignment is made... |
|
357mag |
General Coding Help |
5 |
1,122 |
May-12-2023, 03:34 PM |
|
|
Thread: Trying to understand global variables
Post: RE: Trying to understand global variables
Okay I found out why. You have to use the global keyword to tell the interpreter that the main function intends to modify the variable. |
|
357mag |
General Coding Help |
5 |
1,122 |
May-12-2023, 04:46 AM |
|
|
Thread: Trying to understand global variables
Post: Trying to understand global variables
Just learning about using a global variable. I have this going:
x = 4
def show_value():
print('Value of x: '+ str(x))
# x += 3
# print('Value of x: '+ str(x))
show_value()I had to comm... |
|
357mag |
General Coding Help |
5 |
1,122 |
May-12-2023, 04:40 AM |
|
|
Thread: It seems you have to define functions at the top
Post: RE: It seems you have to define functions at the t...
My book I'm working out of would just call main() at the bottom. I noticed you added some stuff I don't know what it means.
if_name == " _main_";
I don't have a clue as to the why or what that is. |
|
357mag |
General Coding Help |
7 |
1,298 |
May-09-2023, 06:26 AM |
|
|
Thread: It seems you have to define functions at the top
Post: It seems you have to define functions at the top
I wrote a program that defines two functions: one function squares an integer and the other function cubes it.
When I put the function definitions at the bottom of my code I got an error saying funct... |
|
357mag |
General Coding Help |
7 |
1,298 |
May-09-2023, 04:27 AM |
|
|
Thread: Feeling pretty discouraged
Post: RE: Feeling pretty discouraged
|
357mag |
News and Discussions |
3 |
884 |
May-01-2023, 04:33 AM |
|
|
Thread: Feeling pretty discouraged
Post: RE: Feeling pretty discouraged
I decided to get back into my Python Programming. I don't think C++ is the way to go. Better alternatives have come out since then. |
|
357mag |
News and Discussions |
3 |
884 |
Apr-30-2023, 04:52 AM |
|
|
Thread: Feeling pretty discouraged
Post: Feeling pretty discouraged
I have done some console programming in several languages like C++, Python, C#, and Java. Had fun with it but I feel like I'd like to start doing some simple Windows GUI programming. I've had so far t... |
|
357mag |
News and Discussions |
3 |
884 |
Apr-29-2023, 08:39 PM |
|
|
Thread: Trying to disable console window in Visual Studio
Post: RE: Trying to disable console window in Visual Stu...
I just created a new project and chose Empty Module with the .pyw extension. I got "startup file not specified" error. So I right-clicked on the source code and hit Start without debugging and also tr... |
|
357mag |
GUI |
5 |
4,306 |
Apr-25-2020, 06:35 PM |
|
|
Thread: Trying to disable console window in Visual Studio
Post: RE: Trying to disable console window in Visual Stu...
(Apr-25-2020, 04:05 AM)deanhystad Wrote: Visual Studio or Visual Studio Code? Python in Visual Studio is horrible. Visual Studio Code is a much better experience.
I don't see why that would be tru... |
|
357mag |
GUI |
5 |
4,306 |
Apr-25-2020, 04:28 AM |
|
|
Thread: Trying to disable console window in Visual Studio
Post: Trying to disable console window in Visual Studio
I'm experimenting with Python and Visual Studio. One thing that bugs me is that even when I make a GUI program and then I run it Visual Studio still puts up that black console window in addition to my... |
|
357mag |
GUI |
5 |
4,306 |
Apr-25-2020, 02:20 AM |
|
|
Thread: I haven't a clue how to implement this logic
Post: RE: I haven't a clue how to implement this logic
(Apr-02-2020, 09:11 AM)perfringo Wrote: If you have no clue then maybe you are not up to the task.
However, some clues how I would approach the task:
- have questions, multiple choice answers (inc... |
|
357mag |
General Coding Help |
3 |
2,118 |
Apr-02-2020, 04:35 PM |
|
|
Thread: I haven't a clue how to implement this logic
Post: I haven't a clue how to implement this logic
I would like to write a psychology test for the fun of it. It would have ten questions and four multiple choice answers. At the end of the test you could see your score. But the functionality I would ... |
|
357mag |
General Coding Help |
3 |
2,118 |
Apr-02-2020, 08:09 AM |
|
|
Thread: I've always wanted to write this but having problems
Post: I've always wanted to write this but having proble...
I've wanted to write a program that converts an integer to it's binary equivalent. I'm getting an error saying Unbound Local Error. Local variable binary_string referenced before assignment. The last ... |
|
357mag |
General Coding Help |
2 |
1,564 |
Sep-07-2019, 05:00 PM |
|
|
Thread: Everything works except for one line of code
Post: RE: Everything works except for one line of code
(Sep-06-2019, 05:57 PM)ThomasL Wrote: You need to look a little bit more into python oop
class SumTheIntegers:
def __init__(self, x, y):
self.x = x
self.y = y
def _sum(sel... |
|
357mag |
General Coding Help |
3 |
2,375 |
Sep-06-2019, 06:03 PM |