Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
python3
- Page 1
Re: How do I make my code jump back to a previous line?
Programming
3 Days Ago
by Dani
Organizing code into functions is always important for readability and also to be able to reuse parts of your code as your app gets bigger. Thank you for posting your updated code to share with others :)
Re: How Does Flutter Handle State Management Internally?
Programming
Software Development
1 Day Ago
by Temporal
Great topic! When I studied Game Design and Art at UNIAT, we also touched on Flutter and state management, which is key for solid apps. Flutter manages state through its widget tree, with setState() rebuilding parts as needed. For bigger apps, tools like Provider, Riverpod, and BLoC help manage complexity. Provider is simple and good for …
Re: Coin Flip (Python Newbie)
Programming
Software Development
2 Weeks Ago
by woooee
while timesflipped < 100: timesflipped += 1 Use a for loop instead. if coin_flips == 0: And no need to add the == 0. Just *if coin_flips* (i.e. not zero) is enough
Re: Coin Flip (Python Newbie)
Programming
Software Development
1 Week Ago
by Reverend Jim
When you want to do a loop a given number of times (e.g. 100) but the loop counter is not used you can do for _ in range(100): # rest of code here
Hi everyone, I'm stevejonas
Community Center
Say Hello!
4 Weeks Ago
by stevejonas
I am Steve Jonas, a technical blogger at EmizenTech, a reputed software development company that deals in Magento 2 solutions, Salesforce, and Python development.
Hello, I'm Tim Cooke
Community Center
Say Hello!
3 Weeks Ago
by trcooke
Like Ron McLeod, [who we met yesterday](https://www.daniweb.com/community-center/say-hello/threads/543368/hi-everyone-i-m-ron-mcleod), I'm a moderator and administrator over at the CodeRanch.com forums. I'm a Software Engineer, currently working as a Software Architect for a medical technology company in Belfast, Northern Ireland. We use Java, …
Re: Need Coding Help With A Project
Programming
Software Development
1 Week Ago
by Enzo_3
I was working on a similar assignment where I had to compute the average of numbers from a text file using higher-order functions like map() and reduce(). I was really stuck on how to incorporate them meaningfully, but I finally figured it out. Here's how I approached it using Python: from functools import reduce with open('…
Re: Need Coding Help With A Project
Programming
Software Development
1 Week Ago
by Reverend Jim
I don't know why you would use `reduce` and `lambda` when you could just do sum(numbers) And the directive >You should make use of two higher-order functions (i.e., map and reduce, or something else) to simplify the design. is self-contradictory as using `map` and `reduce` instead of `sum` does not simplify the design. It …
Re: When Speed Replaces Satisfaction in Coding
Community Center
Say Hello!
2 Weeks Ago
by Reverend Jim
Compare this to making cookies. One person's idea of making cookies is 1. open the bag 2. put the cookies on a plate 3. done The other extreme would involve grinding the flour and harvesting eggs from your own chickens. I prefer something in the middle. I have enjoyed programming as a professional and a hobbyist for more than 45 years, but …
Re: Fujitsu Windows Server 2019 Servers Rebooting at 11pm every day
Hardware and Software
Microsoft Windows
4 Weeks Ago
by Reverend Jim
Certainly the technology and tools have changed but principles of design and good programming styles have not. Python has, for the most part, replaced (effectively) dead languages like COBOL, and now-niche languages like FORTRAN, but structured programming and modular design are still essential techniques. I have seen too much code written by self-…
Re: Hi everyone, I'm stevejonas
Community Center
Say Hello!
4 Weeks Ago
by Dani
Hi Steve. Welcome to DaniWeb. What brings you here?
Re: Hello, I'm Tim Cooke
Community Center
Say Hello!
3 Weeks Ago
by Reverend Jim
Hello and welcome to Daniweb.
Re: Hello, I'm Tim Cooke
Community Center
Say Hello!
3 Weeks Ago
by John_165
Welcome aboard! I’m also a member of CodeRanch.
Re: Hello, I'm Tim Cooke
Community Center
Say Hello!
3 Weeks Ago
by Dani
Hi Tim! Welcome to DaniWeb. Thank you so much for taking the time to join us over here.
Re: Need Coding Help With A Project
Programming
Software Development
1 Week Ago
by Reverend Jim
>Why put them down? Please explain to me how anything I said was a put down. If someone told me their methof of counting cows was "count the number of legs and divide by four", I would point out that it would be simpler just to count the number of cows. If I said "That's stupid, just count the cows", then that would be a …
Re: Need Coding Help With A Project
Programming
Software Development
1 Week Ago
by Dani
First of all, let me be blunt. I believe that Enzo only resurrected a 12 year old thread with the intent of spamming. You and I know that because, as moderators, we see in his profile his spamming attempts and his infractions. However, no one else coming across this thread sees that or knows that, so the other 2000 people reading this thread may …
How do I make my code jump back to a previous line?
Programming
1 Week Ago
by trueriver
I'm just coding something for fun right now and I'm stuck on looping. I'm using a while loop that only runs if my variable is 0. Right now, I set the variable to 0 but the code was after the loop. How do I fix this? import time import sys #Global Variables firstTime = True loggedIn = False incorrectLogin = …
Re: How do I make my code jump back to a previous line?
Programming
1 Week Ago
by trueriver
updated my code... everything is fixed :) i made functions import time import sys #Global Variables firstTime = True loggedIn = False incorrectLogin = True admin = False n = 0 n1 = 0 i = 0 #Create login if firstTime is True if firstTime is True: print("…
Re: How do I make my code jump back to a previous line?
Programming
1 Week Ago
by woooee
if sysInfo.lower() in ["exit", "Exit", "EXIT"]: since sysinfo is now lower(), it will never be equal to "Exit" or "EXIT"
Re: How Does Flutter Handle State Management Internally?
Programming
Software Development
2 Weeks Ago
by kearawill
How Flutter Handles State Internally Flutter uses a reactive UI model. When the setState() method is called within a StatefulWidget, it marks that widget as "dirty" and schedules it to be rebuilt in the next frame. This allows Flutter to efficiently update only the parts of the widget tree affected by the change, thanks to its …
Re: How Does Flutter Handle State Management Internally?
Programming
Software Development
1 Week Ago
by kearawill
No, It is not AI generated.
Re: How Does Flutter Handle State Management Internally?
Programming
Software Development
1 Week Ago
by sophiabrooks
Flutter internally handles state management through a combination of mechanisms: Stateful Widgets, declarative UI updates, and various libraries for managing app-wide state.
Re: Coin Flip (Python Newbie)
Programming
Software Development
1 Month Ago
by jassonadder
Hey! Great job getting started with Python—your logic is almost there, just a couple of small fixes needed. The main issue is that you're using the variable timesflipped in your while loop, but it was never initialized. Because of that, the loop never runs properly, and your counters don't change. Here's a corrected version of your code:…
Re: Coin Flip (Python Newbie)
Programming
Software Development
1 Month Ago
by Dani
> Presumably bumping every "coinflip" post to spam their URL Nothing wrong with that!! I'll take a trillion helpful posts if all someone wants in exchange is a free signature link back to their website (that only shows up for logged in members, so no SEO incentive).
Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks
Programming
Computer Science
1 Month Ago
by usmanmalik57
On April 14, 2025, OpenAI released [GPT-4.1](https://openai.com/index/gpt-4-1/) — a model touted as the new state-of-the-art, outperforming GPT-4o on all major benchmarks. As always, I like to evaluate new LLMs on simple tasks like text classification and summarization to see how they compare with current leading models. In this article, I will…
Integrating OpenAI Web Search API in LangGraph
Programming
Computer Science
1 Month Ago
by usmanmalik57
Large language models are trained on a fixed corpus, and their knowledge is often limited by the documents they are trained on. Techniques like retrieval augmented generation, continuous pre-training, and fine-tuning enhance an LLM's default knowledge. However, these techniques can still not enable an LLM to answer queries that require web …
Hi everyone, I'm Hichem_MG
Community Center
Say Hello!
1 Month Ago
by Hichem_MG
Hi everyone, I'm Hichem. A web developer, Python enthusiast and problem solver. I'm happy to be a member of the DaniWeb community.
Re: Hi everyone, I'm Hichem_MG
Community Center
Say Hello!
1 Month Ago
by Reverend Jim
Welcome to Daniweb. What type of Python projects have you done?
Re: Question/Answering over SQL Data Using LangGraph Framework
Programming
Computer Science
1 Month Ago
by Pelorus_1
Through its combination of natural language processing and structured query generation, LangGraph makes interfacing with databases and extracting insights over SQL data easier than ever.
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by lennyli
> Why your approach isn’t working > What you're trying to do is mostly blocked by modern security rules — for good reasons. Here's the breakdown: > > Running a .exe on the server > You can technically make the server launch an .exe file like Notepad, but: > > It will run in the background on the server, not visibly on…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC