Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
For example, I have a string like this
a = "starlight sunlight"
And I want to change it into
a = "starspot sunspot"
well i guessed you writing this in python so you can use the replace method
enter example
in your case you went to replace the word light with the word spot so just write
a=a.replace("light","post")
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am trying to find something similar to Delphi's string Grid, I haven't found something similar in Tkinter, it should look like this :
Wxpython grid cell might be what you are looking for, take a look here :
https://wxpython.org/Phoenix/docs/html/grid_overview.html
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
As simple as that. My programming teacher do it and I want to know how to do it.
Thanks!
You just need to press up/down key.
Here you have a terminal guide for beginners.
Have a good day!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
what does it mean s this.
This is bold, just like this.
You can combine them
if you really have to.
It means Hyper Text Markup Language
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can you please cout me in which format this string is encoded
\u041f\u0440\u0430\u0446\u0430",realty:"\u041d\u0435\u0440\u0443\u0445\u043e\u043c\u0430\u0441\u0446\u044c",hitech:"Hi-Tech",sport:"\u0421\u043f\u043e\u0440\u0442",files:"\u0424\u0430\u0439\u043b\u044b",lady:"\u041b\u0435\u0434\u0437\u0456",
deti:"\u0414\u0437\u0435\u0446\u0456",health:"\u0417\u0434\u0430\u0440\u043e\u045e\u0435",travel:"\u041f\u0430\u0434\u0430\u0440\u043e\u0436\u0436\u044b",cards:"\u041f\u0430\u0448\u0442\u043e\u045e\u043a\u0456",horo:"\u0413\u0430\u0440\u0430\u0441\u043a\u043e\u043f\u044b",pogoda:"\u041d\u0430\u0434\u0432\u043e\u0440'\u0435",afisha:"\u0410\u0444\u0456\u0448\u0430",video:"\u0412\u0456\u0434\u044d\u0430
That looks like a fragment of a JSON document with Cyrillic text.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have just started learning python and I have a question. I have a text file which I opened. The file has random questions. Now my question is how can I search for any question similar to this type of question "what is your .... " and "how do you ...." and return the whole question . I am using python 3.x. Please help
I highly suggest you spend some time reading about regex. The trick would be to search for a string that includes the first words you want (the "What is your" statement) and ends with a question mark. The following docs should give you quite a bit of clarity.
https://docs.python.org/3.4/library/re.html
https://docs.python.org/3.4/howto/regex.html#regex-howto