• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/12

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

12 Cards in this Set

  • Front
  • Back
  • 3rd side (hint)

String

X = "abc"

Dict

X = [ABC : 123]

List

X = [ABC, 123]

string Split in List

a.split(",")





tuple

thistuple = ("apple", "banana", "cherry")


(print(thistuple[1])

dictionary

thisdict=


{


"brand": "Ford",


"model": "Mustang",


"year": 1964


}


print(thisdict)

import string dict to json

y = json.loads(x)

dict to json (string)

y = json.dumps(x, indent =2)

string to dict

dict(name = "John", age = 36, country = "Norway")

string to list

x = list(('apple', 'banana', 'cherry'))

in string umwandeln

x = str(3.5)

Aus doch einen Datensatz abfragen

r.headers.get('content-type')


Oder


r.headers['Content-Type']

>>> r.headers{ 'content-encoding': 'gzip', 'transfer-encoding': 'chunked', 'connection': 'close', 'server': 'nginx/1.0.4', 'x-runtime': '148ms', 'etag': '"e1ca502697e5c9317743dc078f67693f"', 'content-type': 'application/json; charset=utf-8'}