Search code examples
pythonpython-3.xquotesdouble-quotes

How to write quotes with your python script


I want to know how to write this '' with script using python

Because I Don't Know How To Write this from script using python ''

Here is my code:

from selenium import webdriver
import time
from random import *
import pyautogui as pg


time.sleep(2)
for i in range(1,510):
    pg.typewrite('')
    # here i want to type quotes in typewrite

here i want to type quotes in typewrite

i want to write quotes in notepad with my script but it's not writing quotes if some chracter in abc or 123 it writing

Thanks!

is there any special character like \n or what is?


Solution

  • You can simply use double quotes:

        pg.typewrite("''")