Editing¶
In [ ]:
%conda --version
%pip --version
%pwd
%ls -la
In [ ]:
%conda
In [5]:
print("Ctrl + Shift + Enter")
Ctrl + Shift + Enter
In [ ]:
print()
abs()
In [ ]:
print()
# @overload def print(*values: object,
# sep: str | None = " ",
# end: str | None = "\n",
# file: SupportsWrite[str] | None = None,
# flush: Literal[False] = False) -> None
# Prints the values to a stream, or to sys. stdout by default.
#
# sep
# string inserted between values, default a space.
# end
# string appended after the last value, default a newline.
# file
# a file-like object (stream); defaults to the current sys. stdout.
# flush
# whether to forcibly flush the stream.
# `print(*values, sep=" ", end="\n", file=None, flush=False)` on docs. python. org
In [ ]:
input()
In [ ]:
x = 4
x = x + 2
print(x)
In [ ]:
3x = 7
In [ ]:
y = 5
In [ ]:
class A:
def __init__(self):
x = 2
self.x = x
def add(self):
return self.x + 2
def __format__(self, __format_spec):
return super().__format__(__format_spec)
In [ ]:
# x = 5
# print("x: ", x)
In [ ]:
# x = 5
# y = 1
# print("x: ", x, "y: ", y)
In [ ]:
x = "Hello PyCharm!"
print(x)
print(type(x))
In [ ]:
x = "Hello PyCharm!"
print(x)
print(type(x))
In [ ]:
x = ".5, "4"
print(x)
In [ ]:
x=2
print ( type(x))
In [ ]:
x = numpy.random.random(100)
In [ ]:
def test_function():
print("Automatic indent for line1")
print("Automatic indent for line2")
print("Automatic indent for line3")
In [ ]:
def test_function():
print("Automatic indent for line1")
print("Automatic indent for line2")
print("Automatic indent for line3")
In [ ]:
def test_function():
print("Automatic indent for line2")
print("Automatic indent for line1")
print("Automatic indent for line3")
In [ ]:
x = 5
x = 5
In [ ]:
x = 5
x = 5
In [ ]:
x = 5
In [ ]:
x = 5
In [ ]:
x = 5
x = 5
x = 5
x = 5
In [ ]:
x = 5
y = 2
x = 5
In [ ]:
x = 5
print(x)
y = x + 4
print(y)
In [ ]:
x = 5
print(x)
y = x + 4
print(y)
In [ ]:
x = 5
print(x)
y = x + 4
print(y)
In [ ]:
x = 5
Search and Replace¶
In [ ]:
x1 = 5
In [ ]:
x2 = 5
x1 = 1
x2 = 4
x1 = 1
In [ ]:
x2 = 5
x1 = 1
x2 = 4
x1 = 1
In [ ]:
x5 = 5
x3 = 1
x5 = 4
x3 = 1
In [ ]:
path = "/home/sysadmin/project"
x = 5
In [ ]:
path = "/home/sysadmin/project"
x = 5
Run and Compile¶
In [ ]:
x = 5
print(x)
In [ ]:
x = 5
print(x)
In [ ]:
x = 5
print(x)
In [ ]:
x = 5
print(x)
In [ ]:
x = 5
print(x)