Python Forum
Ideas for creating a function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ideas for creating a function
#1
Hi

I would like to make a program where a user can copy and paste various items from a game which would include amounts of these items into my program and then the program would take this copy and paste and do some stuff with it. ive explained below

Get users copy and paste
Find key words in the string that user inputs along with the amount that is given.
Assign keywords and amounts to separate variables
Match keywords with rows in a csv file with same name and return the values associated with them.
Im not looking for code per-say, im just looking for pointers on how i could get this problem solved. I thought about using slices of the copy and paste but this wouldnt work as the copy and paste wont always be the same so im unable to predetermine the indexs that i would need to slice. so it would need to be some kind of search function which can then assign each word to different variables that can then be cross checked against a csv file to pull the data i need.

If someone could point me in the right direction, that would be great.

Thanks in advance
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Pandas Syntax problem? Wrong Output, any ideas? Gbuoy 2 920 Jan-18-2023, 10:02 PM
Last Post: snippsat
  Help with coding/ideas natalie 6 1,844 Feb-12-2022, 03:16 PM
Last Post: deanhystad
  Looking for some ideas - Radius Log moralear27 1 1,955 Sep-10-2020, 09:32 PM
Last Post: micseydel
  [split] Creating a variable as a function DPaul 23 6,664 Sep-07-2020, 05:20 PM
Last Post: DPaul
  Creating a variable as a function JarredAwesome 4 2,827 Sep-06-2020, 05:08 AM
Last Post: buran
  Creating function inside classes using type wolfmansbrother 3 2,324 Mar-20-2020, 01:21 AM
Last Post: wolfmansbrother
  Dealing with a .json nightmare... ideas? t4keheart 10 4,376 Jan-28-2020, 10:12 PM
Last Post: t4keheart
  I need help with loop one function and creating variables don 3 2,806 Jan-24-2019, 07:31 AM
Last Post: buran
  some ideas for intelligent list splitting? wardancer84 4 3,213 Nov-20-2018, 02:47 PM
Last Post: DeaD_EyE
  Ideas?? gullidog 3 3,730 Jul-20-2017, 09:06 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020