Skip to content

Commit 69a6302

Browse files
committed
Dodanie KartaPracy1.py (7 zadań)
1 parent f05a9d9 commit 69a6302

File tree

4 files changed

+170
-0
lines changed

4 files changed

+170
-0
lines changed

Diff for: .replit

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
2+
# The primary language of the repl. There can be others, though!
3+
language = "python3"
4+
entrypoint = "KartaPracy1.py"
5+
# A list of globs that specify which files and directories should
6+
# be hidden in the workspace.
7+
hidden = ["venv", ".config", "**/__pycache__", "**/.mypy_cache", "**/*.pyc"]
8+
9+
# Specifies which nix channel to use when building the environment.
10+
[nix]
11+
channel = "stable-21_11"
12+
13+
# The command to start the interpreter.
14+
[interpreter]
15+
[interpreter.command]
16+
args = [
17+
"stderred",
18+
"--",
19+
"prybar-python3",
20+
"-q",
21+
"--ps1",
22+
"\u0001\u001b[33m\u0002\u0001\u001b[00m\u0002 ",
23+
"-i",
24+
]
25+
env = { LD_LIBRARY_PATH = "$PYTHON_LD_LIBRARY_PATH" }
26+
27+
[env]
28+
VIRTUAL_ENV = "/home/runner/${REPL_SLUG}/venv"
29+
PATH = "${VIRTUAL_ENV}/bin"
30+
PYTHONPATH = "${VIRTUAL_ENV}/lib/python3.10/site-packages"
31+
REPLIT_POETRY_PYPI_REPOSITORY = "https://package-proxy.replit.com/pypi/"
32+
MPLBACKEND = "TkAgg"
33+
POETRY_CACHE_DIR = "${HOME}/${REPL_SLUG}/.cache/pypoetry"
34+
35+
# Enable unit tests. This is only supported for a few languages.
36+
[unitTest]
37+
language = "python3"
38+
39+
# Add a debugger!
40+
[debugger]
41+
support = true
42+
43+
# How to start the debugger.
44+
[debugger.interactive]
45+
transport = "localhost:0"
46+
startCommand = ["dap-python", "main.py"]
47+
48+
# How to communicate with the debugger.
49+
[debugger.interactive.integratedAdapter]
50+
dapTcpAddress = "localhost:0"
51+
52+
# How to tell the debugger to start a debugging session.
53+
[debugger.interactive.initializeMessage]
54+
command = "initialize"
55+
type = "request"
56+
57+
[debugger.interactive.initializeMessage.arguments]
58+
adapterID = "debugpy"
59+
clientID = "replit"
60+
clientName = "replit.com"
61+
columnsStartAt1 = true
62+
linesStartAt1 = true
63+
locale = "en-us"
64+
pathFormat = "path"
65+
supportsInvalidatedEvent = true
66+
supportsProgressReporting = true
67+
supportsRunInTerminalRequest = true
68+
supportsVariablePaging = true
69+
supportsVariableType = true
70+
71+
# How to tell the debugger to start the debuggee application.
72+
[debugger.interactive.launchMessage]
73+
command = "attach"
74+
type = "request"
75+
76+
[debugger.interactive.launchMessage.arguments]
77+
logging = {}
78+
79+
# Configures the packager.
80+
[packager]
81+
language = "python3"
82+
ignoredPackages = ["unit_tests"]
83+
84+
[packager.features]
85+
enabledForHosting = false
86+
# Enable searching packages from the sidebar.
87+
packageSearch = true
88+
# Enable guessing what packages are needed from the code.
89+
guessImports = true
90+
91+
# These are the files that need to be preserved when this
92+
# language template is used as the base language template
93+
# for Python repos imported from GitHub
94+
[gitHubImport]
95+
requiredFiles = [".replit", "replit.nix", ".config", "venv"]
96+
97+
[languages]
98+
99+
[languages.python3]
100+
pattern = "**/*.py"
101+
102+
[languages.python3.languageServer]
103+
start = "pylsp"

Diff for: KartaPracy1.py

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
print("ZADANIE 1")
2+
a = int(input("Pierwsza Liczba: "))
3+
b = int(input("Druga Liczba: "))
4+
c = a**2+b**2
5+
print("wyjscie:",c)
6+
7+
8+
print("ZADANIE 2")
9+
a = int(input("Pierwsza Liczba: "))
10+
b = int(input("Druga Liczba: "))
11+
c = (a+b)**2
12+
print("wyjscie:",c)
13+
14+
15+
print("ZADANIE 3")
16+
a = int(input("Pierwsza Liczba: "))
17+
b = int(input("Druga Liczba: "))
18+
c = (a-b)**3
19+
print("wyjscie:",c)
20+
21+
22+
print("ZADANIE 4")
23+
a = int(input("Pierwsza Liczba: "))
24+
b = int(input("Druga Liczba: "))
25+
c = int(input("Trzecia Liczba: "))
26+
c = a*b*c
27+
print("wyjscie:",c)
28+
29+
30+
print("ZADANIE 5")
31+
a = float(input("Pierwsza Liczba: "))
32+
b = float(input("Druga Liczba: "))
33+
c = 2*(a+b)/5
34+
print("wyjscie1:",c)
35+
c = (a+b)*0.4
36+
print("wyjscie2:",c)
37+
38+
39+
print("ZADANIE 6")
40+
a = float(input("Brutto: "))
41+
c = a/1.23
42+
print("Netto:",c)
43+
44+
45+
print("ZADANIE 7")
46+
a = int(input("Pierwsza Liczba: "))
47+
b = int(input("Druga Liczba: "))
48+
c = a%b
49+
print("wyjscie:",c)

Diff for: KartaPracy2.py

Whitespace-only changes.

Diff for: replit.nix

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{ pkgs }: {
2+
deps = [
3+
pkgs.python38Full
4+
];
5+
env = {
6+
PYTHON_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
7+
# Needed for pandas / numpy
8+
pkgs.stdenv.cc.cc.lib
9+
pkgs.zlib
10+
# Needed for pygame
11+
pkgs.glib
12+
# Needed for matplotlib
13+
pkgs.xorg.libX11
14+
];
15+
PYTHONBIN = "${pkgs.python38Full}/bin/python3.8";
16+
LANG = "en_US.UTF-8";
17+
};
18+
}

0 commit comments

Comments
 (0)