Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
import
- Page 1
Re: Need Coding Help With A Project
Programming
Software Development
3 Hours Ago
by Enzo_3
…. Here's how I approached it using Python: from functools
import
reduce with open('numbers.txt', 'r') as file: content = file…
Re: Coin Flip (Python Newbie)
Programming
Software Development
5 Days 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
5 Days 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
Integrating OpenAI Web Search API in LangGraph
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
… application. ```python from typing_extensions
import
TypedDict from langchain_openai
import
ChatOpenAI from IPython.display
import
Image, display from langgraph.graph
import
StateGraph, START from langgraph…
Re: Coin Flip (Python Newbie)
Programming
Software Development
3 Weeks Ago
by jassonadder
…'t change. Here's a corrected version of your code:
import
random coin_heads = 0 coin_tails = 0 timesflipped = 0 while timesflipped <…
Re: Java Coin Flip Program
Programming
Software Development
3 Weeks Ago
by jassonadder
… each result, and then shows the totals at the end:
import
random class CoinFlipper: def __init__(self): self.heads = 0 self…
Re: Coin Flip (Python Newbie)
Programming
Software Development
3 Weeks 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
… sns from itertools
import
combinations from collections
import
Counter from sklearn.metrics
import
hamming_loss, accuracy_score from rouge_score
import
rouge_scorer from openai
import
OpenAI from google…
DeepSeek R1 vs Llama 3.1-405b for Text Classification and Summarization
Programming
Computer Science
2 Months Ago
by usmanmalik57
… from fireworks.client
import
Fireworks
import
os
import
pandas as pd
import
time from rouge_score
import
rouge_scorer from sklearn.metrics
import
accuracy_score from collections
import
defaultdict from…
Implementing a Dynamic Filter Option in a Web Application
Programming
Software Development
2 Months Ago
by YashSmith
… keyword, set minimum and maximum values, and filter by category.
import
React, { useState } from "react"; const DataFilter = ({ data }) =>…
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by lennyli
… on the computer you want to control. ```python # server.py
import
socket
import
pyautogui def main(): server_socket = socket.socket(socket.AF_INET, socket…’re using to control the other one. ```python # client.py
import
socket def main(): client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM…
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: Text Classification and Summarization with DeepSeek R1 Distill Llama 70B
Programming
Computer Science
2 Months Ago
by Pelorus_1
Great breakdown of DeepSeek R1 Distill LLaMA 70B! The explanation of text classification and summarization is clear and insightful. Appreciate the practical examples—makes implementation much easier. Thanks for sharing!
Re: #import?
Programming
Software Development
16 Years Ago
by Radical Edward
#
import
isn't available in C or C++, but if you …
#import instead of @class
Hardware and Software
macOS
9 Years Ago
by ravi_14
….h" @class Asset; //i have used
import
"Asset.h" which contains definition for asset @interface … second line , author has used @class. I have implemented with
import
"Asset.h" Please explain the difference between two…
import a data table with spaces and export one column
Programming
Software Development
11 Years Ago
by shakin
** #
import
a data table with space? # ** Good day! I need to …
import requests endPoint = 'https://api.mnotify.com/api/template' apiKey =
Programming
Software Development
3 Years Ago
by Wis_874
import
requests endPoint = 'https://api.mnotify.com/api/template' apiKey = 'YOUR_API_KEY' url = endPoint + '?key=' + apiKey response = requests.get(url) data = response.json();
Re: Import an new library in Netbeans (Jackcess)
Programming
Software Development
11 Years Ago
by JamesCherrill
`
import
static` imports any static final variables from a class (eg Colors from the Color class). Youu probably should be using just `
import
com.healthmarketscience.jackcess.Database.*; ` to
import
the classes.
#import?
Programming
Software Development
16 Years Ago
by CoolGamer48
Hey, I'm learning Objective-C, and they use [ICODE]#
import
"File.h"[/ICODE] instead of [ICODE]#include "….h"[/ICODE]. The tutorial I'm using says that
import
is like an include once thing, and it basically implements…
Re: #import?
Programming
Software Development
16 Years Ago
by ArkM
…'s a common practice in C++ to implement Object-C @
import
semantics via sacramental [code=cplusplus] // Header file started... #ifndef HEADER_NAME_DERIVATIVE_ID… features in C++ and C preprocessors to do it. The #
import
preprocessor directive in MS Visual C++ has totally different semantics…
Re: #import?
Programming
Software Development
16 Years Ago
by CoolGamer48
So #
import
is specific to Obj-C?
Re: #import?
Programming
Software Development
16 Years Ago
by ArkM
There are Obj_C #
import
analogues in some other languages (in PHP, for example), but no such directive in C and C++. It's a common case, Object-C != C++...
Import from ???
Programming
Software Development
10 Years Ago
by ZZMike
…;"One of the different things about Python is the
import
statement. How do you tell where a function or class…
Re: Import from ???
Programming
Software Development
10 Years Ago
by Gribouillis
Well, you can use the index of the python documentation https://docs.python.org/3/genindex-all.html It could be your beginner's project: write a command line tool which tells you from which module you can
import
symbols.
Re: Import from ???
Programming
Software Development
10 Years Ago
by vegaseat
Can be as simple as ...
import
pip print(pip)
Re: Import from ???
Programming
Software Development
10 Years Ago
by ZZMike
Perfect!!!! The "magic string" there is 'in module'. And, of course, I just noticed that the chapter headings there are WhereItComesFrom? ("6.2. re — Regular expression operations" - so '
import
re')
Re: import a data table with spaces and export one column
Programming
Software Development
11 Years Ago
by shakin
… without additonal intel Again the logic hope
import
data into an array for each field (
import
space char when blank) export array…
import data ftom excel to database using JDBC
Programming
Software Development
12 Years Ago
by ef_mag
… APACHE POI:
import
java.io.FileInputStream;
import
java.io.IOException;
import
java.util.ArrayList;
import
java.util.Iterator;
import
java.util.List;
import
org.apache.poi…
Re: import csv pdo msql
Programming
Web Development
10 Years Ago
by nadiam
…"connection.php"; $session = $_SESSION['sess_user_id']; //
Import
uploaded file to Database $handle = fopen($_FILES['csv']['tmp_name…'], "r"); $
import
=$dbh->prepare("INSERT INTO contact1( user_id,…
import separate scripts in python
Programming
Software Development
12 Years Ago
by vy_007
…` from Tkinter
import
* from PIL
import
Image, ImageTk, ImageEnhance
import
sys
import
os
import
ttk
import
img_func
import
en2
import
center root =…Function for Browse Ip File Button def sel_ip():
import
tkFileDialog toplevel = Tk() toplevel.withdraw() global …
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