The fibonacci series is a classic series of numbers where the 0th element is 0
, the 1st element is 1
, and from thereon, each element is the sum of the previous two elements. For example, the following represents a fibonacci series: 0, 1, 1, 2, 3, 5, 8, 13, 34, ...
This file contains hidden or 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
// My First Smart Contract | |
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.5.0 <0.7.0; | |
contract HelloWorld { | |
uint inputNumber; | |
function storeNumber(uint x) public { | |
inputNumber = x; |
This file contains hidden or 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
## Assignment: Measuring vertical and horizontal length of hiking trips | |
# user can input the (i) name of a trip/mountain | |
print("Start the Script: [start]") | |
print("Stop the Script: [end]") | |
cmd = input("Enter your command: ") | |
cmd_list = [] | |
cmd_list.append(cmd) |