Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Python All the python features I know

Python:
#This is a program full of features I know
import time #The time module stops lines of code for however long you wan't and then carries out them later
time.sleep(7)#The code will stop for 7 seconds
print("HI")
time.sleep(0.7)
print("Hi")

#Below is a simple calculation which is like a Amazon checkout with fixed numbers
quantity = 12
unit_price = 12.78
total_price = quantity * unit_price # here I did quantity X unit_price
time.sleep(2) # I added a delay to make it seem like it is loading
print(total_price)#This show your total

import turtle
drawer =turtle.Turtle()
drawer.forward(100)
drawer.right(90)# moves right
drawer.forward(100)
drawer.left(90)
drawer.forward(100)
drawer.right(90)
drawer.forward(100)
drawer.left(90)
#I have created stairs

# I will make something along the lines of message applications
print("Joe:Hi")
time.sleep(1)
print("Kyle:Hi how are you")
time.sleep(1)
print("Joe:Good what about you?")
time.sleep(1)
print("Kyle:I'm fine :)")

# I can use the same code from the checkout to put in a download page
storage_needed = 2.6
storage_avalible = 1123.78
if storage_avalible < 2.6:
                         print("You do not have enough storage for this application")
                        
#With some of the code from the download page also is used for a positive and negative number
num = 123
if num <0:
         print("This is a negative number")
else:
    print("This is a positive number")

#This is a login part of a site or application
user_name = "Oli"
pass_word = "1c4v3ed"   #Not my real password
time.sleep(0.9)
print("Please log in")
time.sleep(1)
print(user_name,pass_word)
time.sleep(1)
print("Welcome Oliver Hawthorne")
notifi_cations = 12
if notifi_cations >10:
    print("You have a lot of notifications would you like me to delete them?")
 

Buy us a coffee!

Back
Top Bottom