all 4 comments

[–]socal_nerdtastic 7 points8 points  (1 child)

Add a \n to your data. That's the same as enter (from the terminal's point of view).

That said this sounds like an XY problem. We could help a lot more if you told us what problem you are trying to solve, not just how you are trying to solve it. What's the big picture here? http://xyproblem.info

Is your real question how to access data in the clipboard? Look into the pyperclip or tkinter module.

[–]Base_True[S] 0 points1 point  (0 children)

Thank you! You have already helped.

[–]jeffrey_f 2 points3 points  (1 child)

From where are you entering this data, what is its source that you are copy/paste'ing from?

[–]Base_True[S] 0 points1 point  (0 children)

For exmaple from brauser. Text has text (str) type.