>>s = ['a','b']
>>s
['a', 'b']
>>>
This is what I want so that I can put it in a module then import that
module to work with my variable. 3 1004
On May 3, 8:00 pm, noagbodjivic... @gmail.com wrote:
>s = ['a','b'] s
['a', 'b']
This is what I want so that I can put it in a module then import that
module to work with my variable.
Sorry for that typo in the title...
On May 3, 8:01 pm, noagbodjivic... @gmail.com wrote:
On May 3, 8:00 pm, noagbodjivic... @gmail.com wrote:
>>s = ['a','b']
>>s
['a', 'b']
This is what I want so that I can put it in a module then import that
module to work with my variable.
Sorry for that typo in the title...
I found a was using str(list). Do you know how to get rid of the
surrounding quotes?
On May 3, 8:24 pm, noagbodjivic... @gmail.com wrote:
On May 3, 8:01 pm, noagbodjivic... @gmail.com wrote:
On May 3, 8:00 pm, noagbodjivic... @gmail.com wrote:
>s = ['a','b']
>s
['a', 'b']
This is what I want so that I can put it in a module then import that
module to work with my variable.
Sorry for that typo in the title...
I found a was using str(list). Do you know how to get rid of the
surrounding quotes?
Nevermind... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jay Davis |
last post by:
What is the best way to run python in Xemacs (with C-c C-c)
with real time standard output? Right now, the python output
window fills up when the program is finished running, but
if the program runs for hours it would be nice to see the
output as it is written. I know that I can switch to a
python interpreter window and paste the code in etc but I don't
care about the interpreter, just about the (printed) output
after C-c C-c.
|
by: Thomas M. |
last post by:
Hello,
i have a question on the following code.
test_list =
for i in test_list:
print i
|
by: Ira |
last post by:
Hi,
Using an embedded interpreter, how do I change it's default output streams
(specifically the one used by PyErr_Print() which I'm guessing is the
default error stream)?
Cheers,
Ira
|
by: yawgmoth7 |
last post by:
Hello, I have a piece of code:
command = raw_input("command> ")
words = string.split(command, ' ')
temparg = words
if len(words)<= 3:
temparg = words
else:
temparg = words
funcarg = string.upper(temparg)
|
by: Ilias Lazaridis |
last post by:
IDLE has an output format like this:
<type 'object'>
<type 'type'>
<type 'type'>
How can I customize it to become like that:
<type 'object'>
<type 'type'>
| |
by: John Henry |
last post by:
If I have a list of say, 10 elements and I need to slice it into
irregular size list, I would have to create a bunch of temporary
variables and then regroup them afterwords, like:
# Just for illustration. Alist can be any existing 10 element list
a_list=("",)*10
(a,b,c1,c2,c3,d1,d2,d3,d4,d5)=a_list
alist=(a,)
blist=(b,)
clist=(c1,c2,c3)
|
by: Vishal |
last post by:
Hi,
I have a file with a long list of hex characters, and I want to get a
file with corresponding binary characters
here's what I did:
.... x = line.rstrip('\n')
.... y = binascii.unhexlify(x)
.... df.write(y)
|
by: nkomli |
last post by:
Okay, I want to allow the user to define their own variables and
equations and then use them to run a program. The user picks the
option to create a list of variables
If the user enters in r d and s at the prompt
how would you define each as a double variable?
|
by: HYRY |
last post by:
I have the following questions, I am using Python 2.4.2
19167152 #1
11306608 #1
1. the address of a.append and list.append is different, can I get the
address of list.append from a.append?
19162720
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |