mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-23 22:23:35 +00:00
uses: actions/checkout@v2 (#1779)
* uses: actions/checkout@v2 * fixup! Format Python code with psf/black push
This commit is contained in:
parent
cb4795616c
commit
59bf115aa1
2
.github/workflows/autoblack.yml
vendored
2
.github/workflows/autoblack.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
- run: pip install black
|
- run: pip install black
|
||||||
- run: black --check .
|
- run: black --check .
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
"""Calculate Modular Exponential."""
|
"""Calculate Modular Exponential."""
|
||||||
|
|
||||||
|
|
||||||
def modular_exponential(base: int, power: int, mod: int):
|
def modular_exponential(base: int, power: int, mod: int):
|
||||||
"""
|
"""
|
||||||
>>> modular_exponential(5, 0, 10)
|
>>> modular_exponential(5, 0, 10)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import random
|
import random
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
|
||||||
class Dice:
|
class Dice:
|
||||||
NUM_SIDES = 6
|
NUM_SIDES = 6
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user