How to put a multi-row statement string into a variable? : <p>I want to a store a long string (specifically a SQL query) into a variable, which I'd like to have written on more row for a better readability.</p>

<p>I'm using Jupyter notebook on Python 3.5 (Anaconda) if that's important.</p>

<p>I've tried:</p>

<pre><code># SQL query

query = "
SELECT
 Sued 
,ApplicationNumber_Primary
--,ApprovedLoanAmount, ApprovedLoanDuration, ApprovedMonthlyPayment, 
,RequiredLoanDuration, RequiredMonthlyPaymentAmount, RequiredPaidAmount, RequiredCoefficientK1
,ClientFreeSources, ClientTotalIncome, ClientNetIncome, ClientTotalExpenditures 
,ClientAgeToApplicationDate, ClientFamilyStatusID, ClientEmploymentDuration, CreditExposure
,CalendarQuarter, MonthOfYear, WeekOfYear, DayOfMonth, DayOfWeek, RegionID, DistrictID, ZIPcodeID 

FROM 
dbo.vRisk
GO
"
</code></pre>

<p>...which does not store the string into the variable, as I'd like.</p>

<p>Help would be appreciated.</p>
