Mish mash of flashcards

Beschreibung

python Karteikarten am Mish mash of flashcards, erstellt von xat jak am 26/07/2017.
xat jak
Karteikarten von xat jak, aktualisiert more than 1 year ago
xat jak
Erstellt von xat jak vor mehr als 7 Jahre
1
0

Zusammenfassung der Ressource

Frage Antworten
= assigns the value to the left , to the variable on the right
== Test wether two things have the same value
# octhotorpe, makes comments the program dont run
" " double quotes, makes a line print
' ' single quotes, used for a letter or word to print
""" tripple quotes, used for big prints
{} braces, sets arguments
round() gives a floating number
.format runs a command on the string
end=' ' end the string and continues on the same line
\n linefeed, starts a new line
\t Horizontal tab, indents the line
\\ double backslash, sets a regular backslash
\ backslash, encodes difficult to type characters
int(input)) integer w/input, turns the input to an integer before assigning it to a variable
input(promt) Asks the user a question, then assigns the answere to a variable
repr() represents the raw computer line
def defines a function
argv argumentvector/variable
target.truncate deletes selected file
target.write Writes onto the selected file
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Prep Like a Pro with GoConqr's Revision Timetable
Mike Nervo
Code Challenge Flow Chart
Charlotte Hilton
Flvs foundations of programming dba 2
mariaha vassar
Python Cheat Sheet
Matt Burkes
Python Appendix A - ex.1
Melissa Machado
Python Quiz
karljmurphy
20 Study Hacks To Improve Your Memory
jen.sch.ca
Study tips/hacks
Sarah Biswas
AS-Level Chemistry: Unit 1:The Atom
Daena Targaryen
Study Plan
Kundai Gee Ganjani
PMP Formulas
Krunk!