Ditutup

python list help with replacing

Example:

I have a list with 12-13 IDs, for each id I want to assign them a name, then save the name, not the id to name a file eg;

names = [123456789, 987654321, ....]

f = open([login to view URL]('aa', str(Example) + '.txt'), 'a')

[login to view URL]()

That creates the file, then:

a = [c for c in names if c in [login to view URL]]

That then filters out and if it finds any ID from my list it will print the found IDs as well as save the found IDs and the files name.

Now, what I want:

When it finds and lets say saves name '123456789' I'd like '123456789' to have a name of let's say 'Bob' it will be saved as instead of 123456789.

Any help is appreciated!!

Kemahiran: Python, Kejuruteraan Perisian

Lihat lagi: python projects help needed, craigs list help creating ads, list item fields sharepoint 2007 print pdf, python replace multiple items in list, how to replace a number in list python, how to replace a list with another list in python, python list replace element at index, replace tuple in list python, python list replace (), python replace element in nested list, python list replace string, add header csv python list, visual basic excel help replacing values, will craigs list help protect flagging, introduction python assignemnt help undergrad level, python list countries csv, python module search replacing file, python assignment help, python list files network share, python list bookmaker odds calculate

Tentang Majikan:
( 1 ulasan ) canberra, Australia

ID Projek: #17984233

35 pekerja bebas membida secara purata $22 untuk pekerjaan ini

schoudhary1553

This is Vibrant Webtech and I was glad to see that you're looking for help for project python list help with replacing. I've delivered more than 400 + projects in the last 5 years and this makes me very confident wit Lagi

$100 AUD dalam 2 hari
(41 Ulasan)
6.0
anupkelkar02

I am a Python data science expert with experience in Classification and partitioning,Neural Networks, Association rules, Machine Learning Model, Tensorflow. Also I am a Oracle Certified professional (OCP) with ex Lagi

$30 AUD dalam 2 hari
(45 Ulasan)
6.0
rishiajmera

Hello, Greetings! With a proven track record of successful achievements, I am pleased to present my application for your consideration as a Freelancer. Please have a look at my profile and portfolio to get an idea o Lagi

$25 AUD dalam sehari
(51 Ulasan)
5.4
rinabuoy13

Hello, I am experienced python expert. I can help with this task with quick turnaorund. Looking to hearing from you. Kind regards

$25 AUD dalam sehari
(47 Ulasan)
5.6
alkarajput3131

I am a statistician and a data scientist. I am good at machine learning and data science. I am a statistician and have a strong background of theoretical statistics and mathematics. I am good at web scraping using pyt Lagi

$25 AUD dalam sehari
(52 Ulasan)
5.2
NavyaSales

Hi Though I did not fully understand what you want, we can chat and you can show the probelm we will solve within an hour. Regards Aditya

$25 AUD dalam sehari
(7 Ulasan)
5.0
mohdhathi

Hi I can help you with the task. Please let me know if interested. Thank you..........................

$25 AUD dalam 0 hari
(14 Ulasan)
4.3
visweswaran1998

Good Morning Employer, This seems to be a fairly easy project and I am sure that I can complete it. Kindly hire me Thank you. My Policy: Will complete the whole project and will show it to you once you ar Lagi

$15 AUD dalam sehari
(26 Ulasan)
4.3
abdulrahmanfci

I'm a software developer who uses Python for around 4 years now. I used it for simple projects to deep/machine learning tasks. (check reviews on profile) Just need more details about project to decide effort, time, et Lagi

$25 AUD dalam 0 hari
(13 Ulasan)
4.0
AlexMetalhead

Hey, my friend I am certain I can do this job quickly and well. I have good experience with Python and some free time today. Feel free to contact me asap. Cheers, Alex

$20 AUD dalam sehari
(15 Ulasan)
4.1
$20 AUD dalam 2 hari
(9 Ulasan)
3.3
developersperhr

I am expert in Python and recently implimented google captcha on this [login to view URL] create complex [login to view URL] check previous work [login to view URL] [login to view URL] [login to view URL] http://escap Lagi

$55 AUD dalam sehari
(3 Ulasan)
3.1
ashki98

Hi, I understand that you need to reference the files with the names rather than it's id. I can help you with this using Python. But I do have to clarify certain things, so kindly message me and I can help you with thi Lagi

$20 AUD dalam sehari
(3 Ulasan)
3.1
dvdalon

Hello my friend! I made the minimum bid because really, this is quite easy to do. So no reason to "steal" your money.

$10 AUD dalam 3 hari
(1 Ulasan)
1.4
JoshuaSullivan92

Hello I am a Python developer of 5 years and would like to help you with your script. If you would like to discuss anything further please feel free to message me at anytime. Thanks

$15 AUD dalam sehari
(1 Ulasan)
1.2
HarinieR

Hi, I've good experience in handling text files in python even delimited files - reading and writing them and also have good hands on experience in using files and list comprehension in python. I would be glad if you Lagi

$20 AUD dalam sehari
(0 Ulasan)
0.0
Arun53999

This is kind of a small problem. Let me try to help here itself. lets say you opened a file '[login to view URL]' now You could create a python dictionary containing the name along with number like: d = { "123456789": "Bo Lagi

$10 AUD dalam sehari
(0 Ulasan)
0.0
dudar99

I think that can help you. But I not сlearly understand what did you mean. Can you give a more information about this task

$10 AUD dalam 3 hari
(0 Ulasan)
0.0
acamso

Hi, I can do this for you. Please shoot me a PM to discuss details and we'll get started right away.

$25 AUD dalam sehari
(0 Ulasan)
0.0
sapna321

Hello, I am a firmware developer (having 10+ years of experience) and web developer. Worked on BeauifulSoup for Scraping. Working on CodeIgniter, MySQL, jQuery, AJAX, Bootstrap with knowledge of HTML and CSS. This pr Lagi

$10 AUD dalam sehari
(0 Ulasan)
0.0