This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import numpy as np | |
import matplotlib.pyplot as plt | |
a = int(input("please enter a: ")) | |
if a == 0: | |
print("a can't be 0.") | |
exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import grpc | |
import json | |
from pactus.crypto import CryptoConfig | |
from pactus.crypto.address import Address | |
from pactus.crypto.bls.private_key import PrivateKey | |
from pactus.transaction.transaction import Transaction | |
from pactus.types.amount import Amount | |
from pactus.rpc.transaction_pb2_grpc import TransactionStub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import secrets | |
from pactus.crypto import CryptoConfig | |
from pactus.crypto.address import AddressType, Address | |
from pactus.crypto.bls.private_key import PrivateKey, PublicKey | |
def main() -> None: | |
addresses = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def is_odd(num: int): | |
if (num % 2) == 0: | |
return False | |
return True | |
def collatz(num: int): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int factorial(int n) { | |
if (n == 0) { | |
return 1; | |
} | |
return n * factorial(n -1); | |
} | |
int main() |