python string copy

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

showing results for - "python string copy"
Inaya
29 Jul 2017
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)
Natalia
07 Aug 2016
1a = 'foo'
2b = 'bar'
3print(2*a)
4foofoo
5print(a+a)
6foofoo
7r = b
8print(r)
9bar