copy string python

Solutions on MaxInterview for copy string python by the best coders in the world

showing results for - "copy string python"
Fidel
17 Jul 2018
1# The pyperclip module is used to copy text to the clipboard in python.
2# To install it, run pip install pyperclip in your terminal.
3import pyperclip
4var = 'Hello World'
5pyperclip.copy(var)
Fabian
06 Oct 2017
1a = 'foo'
2b = 'bar'
3print(2*a)
4foofoo
5print(a+a)
6foofoo
7r = b
8print(r)
9bar