Skip to Main Content
SQL Server 2017 Developer???s Guide
book

SQL Server 2017 Developer???s Guide

by Dejan Sarka, Miloš Radivojević, William Durkin
March 2018
Intermediate to advanced content levelIntermediate to advanced
816 pages
19h 35m
English
Packt Publishing
Content preview from SQL Server 2017 Developer???s Guide

Python language basics

Python uses the hash mark for a comment, just like R. You can execute Python code in VS 2017 by highlighting the code and simultaneously pressing the Ctrl and Enter keys. Again this is completely the same as you need to do either in RStudio IDE or in R Tools for VS. You can use either single or double apostrophes for delimiting strings. The first command you will learn is the print command. Write and execute the following code in the Visual Studio 2017 Python script window:

# Introducing Python 
# Hash starts a comment 
print("Hello World!") 
# Next command ignored 
# print("Nice typing") 
print('Printing again.') 
print('O"Hara')   # In-line comment 
print("O'Hara") 

You can observe the code you wrote and the results in the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SQL Server 2016 Developer's Guide

SQL Server 2016 Developer's Guide

Miloš Radivojević, Dejan Sarka, William Durkin
Mastering SQL Server 2017

Mastering SQL Server 2017

Milos Radivojevic, Dejan Sarka, William Durkin, Christian Cote, Matija Lah

Publisher Resources

ISBN: 9781788476195Supplemental Content