what to code in python code example

Example 1: how to code in python

#if its your first time start with this
print("hello world")
#now learn about input
input("whats your name")
#if statements and variables
run = True
if run == True:
  print("hi")
#now lets combine our knowledge
print("Whats your name")
name = input("")
print("Hello, " + name)

Example 2: what can you do with python

//  make a  friend using python 
//make sue  you have installed pyttsx3 module
// to install module open cmd and write pip install pyttsx3

import pyttsx3
engine = pyttsx3.init()
engine.say("")
engine.runAndWai

Example 3: python code

print ("Hello World")

Example 4: python code

print("Bonjour")