python basic code code example
Example 1: how to code in python
print("hello world")
input("whats your name")
run = True
if run == True:
print("hi")
print("Whats your name")
name = input("")
print("Hello, " + name)
Example 2: python program big
num = 407
if num > 1:
for i in range(2,num):
if (num % i) == 0:
print(num,"is not a prime number")
print(i,"times",num//i,"is",num)
break
else:
print(num,"is a prime number")
else:
print(num,"is not a prime number")
Example 3: python code
print("Bonjour")
Example 4: python code
print ("Hello World")