It's a python script, but you can write the next line lol.
Let's see how it's going to be broken.
To do that, it's ez. You just have to post a line of code, between [ code ] tags (else I'll don't think it's a line code). Don't forget indents!!!!
You can at any moment copy the code and run it: show us the results!
If you don't know how to code, here's a tutorial! (it's ez)
Rules
- Language must be python. We don't accept other languages.
- The syntax of your code must be valid.
- Do not post viruses, "fork bombs", or anything which can destroy a computer.
- Avoid endless loops.
Maybe I'll add some additional rules later.
Code:
main.pyfrom math import sqrt import tkinter print("Welcome to the OT! Python Program !") username = input("What's your name? ") randomTuple = (1) animal=input("Who's your favorite Pokemon?") if animal=="pikachu": print("Good choice!") elif animal=="vulpix": print("You are a furry, get a life.") x = [] for i in range(10000): x.append(i) print(x) name = input('What is your name?\n') print('Hello, %s!' % name) def factorial(a): temp = 1 if a == 0: return 1 for i in range(1, a): temp *= a return temp print(factorial(5)+102) print(factorial(6) + factorial(3) + factorial(1)) def add(a,b): return factorial(a) + factorial(b) print("The sum of 'factorial()' of 64 & 81 is") print(int(add(64,81))) print("What a long number !") print('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') print("Segmentation fault (core dumped)") phantonym_window = tkinter.Tk() phantonym_window.geometry("300x200") phantonym_window.title("From Phantonym") tk_string = tkinter.StringVar(phantonym_window) tk_string.set("Hello " + username) greet_text = tkinter.Label(phantonym_window, textvariable=tk_string, font=("Comic Sans MS", 12), pady=75) greet_text.config(anchor=tkinter.CENTER) greet_text.pack() pwindow.mainloopLast update: post 40