Day 6
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
x = int(input("x: "))
|
||||||
|
|
||||||
|
|
||||||
|
y = int(input("y: "))
|
||||||
|
|
||||||
|
|
||||||
|
z = x / y
|
||||||
|
|
||||||
|
print(f"{z:.50f}") #incantation
|
||||||
+8
-2
@@ -1,3 +1,9 @@
|
|||||||
for _ i in range(3):
|
def main():
|
||||||
print("Meow")
|
for i in range(3):
|
||||||
|
meow()
|
||||||
|
|
||||||
|
def meow():
|
||||||
|
print("meow")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|||||||
@@ -3,13 +3,16 @@ words = set()
|
|||||||
def check(word):
|
def check(word):
|
||||||
return word.lower() in words
|
return word.lower() in words
|
||||||
|
|
||||||
|
|
||||||
def load(dictionary):
|
def load(dictionary):
|
||||||
with open(dictionary) as file:
|
with open(dictionary) as file:
|
||||||
words.update(file.read().splitlines())
|
words.update(file.read().splitlines())
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def size():
|
|
||||||
|
def size():
|
||||||
return len(words)
|
return len(words)
|
||||||
|
|
||||||
def unload():
|
|
||||||
|
def unload():
|
||||||
return True
|
return True
|
||||||
|
|||||||
+3
-1
@@ -1 +1,3 @@
|
|||||||
print ("Hello World")
|
|
||||||
|
answer = input("What's your name? ")
|
||||||
|
print(f"hello, {answer}")
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
before = input("Before: ")
|
||||||
|
after = before.upper()
|
||||||
|
print(f"After: {after}")
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <cs50.h>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
|
||||||
|
{
|
||||||
|
string answer = get_string("What's your name? ");
|
||||||
|
printf("hello, %s\n, answer);
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user