100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Samenvatting

Summary Quick Reference Of Python Programming Language

Beoordeling
-
Verkocht
-
Pagina's
18
Geüpload op
21-09-2021
Geschreven in
2021/2022

Learning a programming language is needed a great effort, isn't it? But, after learning the language we can't remember all of the keywords, syntaxes, datatypes of that language. As python is one of the most popular programming languages at this time, and it's being a necessity for all programmers to learn python. But, after learning the language when we start coding, it will be great if we have a quick reference or cheat sheet in front of our eyes, where all syntaxes will be present. Isn't it sound good! In this python quick reference note, you'll get all the important syntaxes handy whenever you'll code.

Meer zien Lees minder
Instelling
Vak










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Vak

Documentinformatie

Geüpload op
21 september 2021
Aantal pagina's
18
Geschreven in
2021/2022
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

Quick Reference

,1. Basics
Basic syntax from the python programming language

Showing Output To User

the print function is used to display or print output


print("Content that you wanna print on screen")


Taking Input From User

the input function is used to take input from the user


var1 = input("Enter your name: ")


Empty List

This method allows you to create an empty list


my_list = []


Empty Dictionary

By putting two curly braces, you can create a blank dictionary


my_dict = {}


Range Function

range function returns a sequence of numbers, eg, numbers starting from 0 to n-1 for range(0, n)


range(int_value)




2. Comments
Comments are used to make the code more understandable for programmers, and they are not
executed by compiler or interpreter.
1/17

, Single line comment


#This is a single line comment


Multi-line comment


'''This is a
multi-line
comment'''



3. Escape Sequence
An escape sequence is a sequence of characters; it doesn't represent itself when used inside
string literal or character.

Newline

Newline Character


\n


Backslash

It adds a backslash


\\


Single Quote

It adds a single quotation mark


\'


Tab

It gives a tab space


\t



2/17
$2.99
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
learnwithsouvik

Maak kennis met de verkoper

Seller avatar
learnwithsouvik University of Calcutta
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
4 jaar
Aantal volgers
0
Documenten
2
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen