mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v1
|
||||
- run: pip install black
|
||||
- run: black --check .
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
"""
|
||||
|
||||
"""Calculate Modular Exponential."""
|
||||
|
||||
|
||||
def modular_exponential(base: int, power: int, mod: int):
|
||||
"""
|
||||
>>> modular_exponential(5, 0, 10)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import random
|
||||
from typing import List
|
||||
|
||||
|
||||
class Dice:
|
||||
NUM_SIDES = 6
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user