Repository navigation
Expand file tree
/
Copy pathrandom_python_programs_exercises.py
More file actions
79 lines (70 loc) · 2.57 KB
/
Copy pathrandom_python_programs_exercises.py
File metadata and controls
79 lines (70 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# -*- coding: utf-8 -*-
"""Random Python Programs exercises
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1rHkEcCtysqugNxNooEqAoX8mHEbqRzHh
"""
# This progam says Hello and asks for your name, and tries to be your chatbot friend
print("Hello there, my name is Mapenzi, it means LOVE in Swahili.")
print("If you dont mind, what is your name ?") #Asks for the their name
print("By the way, just type your name, dont start by saying MY NAME IS.... like you a child, lol.")
print("| ")
print("| ")
print("| ")
print("| ")
print("| ")
print("| ")
name=input("What's your name?")
print("\n")
print(" \\|||||/ ")
print(" ( O O ) ")
print("|--ooO-----(_)--------------|")
print("| |")
print("| Hello " + name +" |")
print("| |")
print("| Welcome to my first |")
print("| Python program |")
print("| |")
print("|------------------Ooo------|")
print(" |__||__| ")
print(" || || ")
print(" ooO Ooo ")
print("| ")
print("| ")
print("| ")
print("Lol, not the best name I've heard this year, anyways...")
print("It is very nice to meet you, " + myName) #Prints the message followed by the input name
print("The total amount of characters on your name is: ")
print(len(myName))
print("Which is not bad for a humans name.")
print("What is your age?") #Asks for their age
print("| ")
print("| ")
print("| ")
print("| ")
print("| ")
print("| ")
myAge = input() # Allows them to input their age
print("| ")
print("| ")
print("| ")
print("| ")
print("| ")
print("| ")
print("You will be " + str(int(myAge) + 10) + " in 10 years time.")
print("Do you know what that means ?? Well... absolutely nothing but I just thought was cool to let you know, LOL.")
print("| ")
print("| ")
print("| ")
print("| ")
print("| ")
print("Thanks for spending 5 seconds of your precious life to test this little program \n you can see Im new to this.")
#
# --------------> NOTES <---------------------
# GoogleColab is sensitive to quotation marks, use double quotes and not single quotes
# Functions are like mini programs in your program
# Values passed to functions are called arguments
#
#
#
#