-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython.yaml
88 lines (82 loc) · 2.47 KB
/
python.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
title: "Python Built-in Functions and Methods"
RenderKeys: false
AllowText: true
layout:
keyboard: US
system: Darwin
shortcuts:
"Basic Operations":
"print()":
description: "Output to stdout"
"len()":
description: "Get sequence length"
"type()":
description: "Get object type"
"input()":
description: "Read user input"
"Type Conversion":
"int()":
description: "Convert to integer"
"str()":
description: "Convert to string"
"float()":
description: "Convert to float"
"list()":
description: "Convert to list"
"dict()":
description: "Convert to dictionary"
"set()":
description: "Convert to set"
"List Methods":
"list.append()":
description: "Add item to end"
"list.extend()":
description: "Add iterable to end"
"list.pop()":
description: "Remove and return item"
"list.sort()":
description: "Sort in place"
"list.reverse()":
description: "Reverse in place"
"Dictionary Methods":
"dict.get()":
description: "Get value with default"
"dict.keys()":
description: "Get all keys"
"dict.values()":
description: "Get all values"
"dict.items()":
description: "Get key-value pairs"
"dict.update()":
description: "Update dictionary"
"String Methods":
"str.split()":
description: "Split into list"
"str.join()":
description: "Join iterable to string"
"str.strip()":
description: "Remove whitespace"
"str.replace()":
description: "Replace substring"
"str.format()":
description: "Format string"
"File Operations":
"open()":
description: "Open file"
"file.read()":
description: "Read entire file"
"file.write()":
description: "Write to file"
"file.close()":
description: "Close file"
"Iterables":
"range()":
description: "Generate number sequence"
"enumerate()":
description: "Index iterator"
"zip()":
description: "Combine iterables"
"map()":
description: "Apply function to iterable"
"filter()":
description: "Filter iterable"