Advertisement
Felanpro

project progress

Aug 14th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.51 KB | None | 0 0
  1. from time import sleep
  2. import winsound
  3.  
  4. winsound.Beep(2000, 500)
  5. winsound.Beep(2000, 500)
  6. winsound.Beep(2000, 500)
  7. print("*", end="")
  8. sleep(0.070)
  9. print("*", end="")
  10. sleep(0.070)
  11. print("*", end="")
  12. sleep(0.070)
  13. print("*", end="")
  14. sleep(0.070)
  15. print("*", end="")
  16. sleep(0.070)
  17. print("*", end="")
  18. sleep(0.070)
  19. print("*", end="")
  20. sleep(0.070)
  21. print("*", end="")
  22. sleep(0.070)
  23. print("*", end="")
  24. sleep(0.070)
  25. print("*", end="")
  26. sleep(0.070)
  27. print("*", end="")
  28. sleep(0.070)
  29. print("*", end="")
  30. sleep(0.070)
  31. print("*")
  32. sleep(0.6)
  33. print("T", end="")
  34. sleep(0.070)
  35. print("e", end="")
  36. sleep(0.070)
  37. print("r", end="")
  38. sleep(0.070)
  39. print("m", end="")
  40. sleep(0.070)
  41. print("i", end="")
  42. sleep(0.070)
  43. print("n", end="")
  44. sleep(0.070)
  45. print("a", end="")
  46. sleep(0.070)
  47. print("l", end="")
  48. sleep(0.070)
  49. print(end=" ")
  50. sleep(0.070)
  51. print("B", end="")
  52. sleep(0.070)
  53. print("o", end="")
  54. sleep(0.070)
  55. print("o", end="")
  56. sleep(0.070)
  57. print("t")
  58. sleep(0.070)
  59.  
  60. flag = True
  61.  
  62. import datetime
  63. import os
  64. import platform
  65. import random
  66. from tkinter import *
  67.  
  68. current_time = datetime.datetime.now()
  69.  
  70. while flag is True:
  71.     user_input = input(">")
  72.  
  73.     if user_input == "time":
  74.         print("Current date and time:", current_time)
  75.     else:
  76.         pass
  77.  
  78.     if user_input == "mkdir":
  79.         os.mkdir("directory from terminal")
  80.         print('A directory named "directory from terminal" has been created on your computer.')
  81.     else:
  82.         pass
  83.  
  84.     if user_input == "whoami":
  85.         print(os.getlogin())
  86.     else:
  87.         pass
  88.  
  89.     if user_input == "os":
  90.         print(platform.system())
  91.     else:
  92.         pass
  93.  
  94.     if user_input == "get area of square":
  95.         area_width = int(input("Width: "))
  96.         area_height = int(input("Height: "))
  97.         sum_of_area = area_width * area_height
  98.         print(sum_of_area)
  99.     else:
  100.         pass
  101.  
  102.     if user_input == "get power of":
  103.         num1 = float(input("Base: "))
  104.         num2 = float(input("Exponent: "))
  105.         sum1 = num1**num2
  106.         print(sum1)
  107.     else:
  108.         pass
  109.  
  110.     if user_input == "random":
  111.         rand_num = random.randint(1, 1000 + 1)
  112.         print(rand_num)
  113.     else:
  114.         pass
  115.    
  116.     if user_input == "help":
  117.         print("List of all commands.")
  118.         print("**********")
  119.         print("time")
  120.         print("mkdir")
  121.         print("whoami")
  122.         print("os")
  123.         print("get area of square")
  124.         print("get power of")
  125.         print("random")
  126.         print("**********")
  127.     else:
  128.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement