Tuesday, 25 April 2023

python practice time.py

 

#1 It's practice time !

print("Hello World")
print("Hello World")
print("Hello World")
print("Hello World ")
print("Hello World ")
print("Hello World")
print("Hello World ")
print("Hello World ")
print("Hello World")
print("Hello World")

#2

# variable are of four types bifs string, floating, integer, boolean.

#example 1

#variable
name = "shradha"
age = 22
print(name)
print(age)
#variables define krta hai ki memory me us location ka kya name hai.
# in simple words we can say that, variables is the name of the memory location.

#change the name in variables

#Example 2

name = "Shradha"
age = 22

name = "Amit"
age = 24
print(name )
print(age)

#Example 3 print variables with the help of boolean types

first_name = "Shradha"
last_name = "Khapra"
age = 19
is_adult = True
print(first_name + " " + last_name)
print(age)
print(is_adult)

first_name = "Tony"
last_name = "Stark"
age = 52
is_genius = "True"

print(first_name + " " + last_name)
print(age)
print(is_genius)

name = 'amit'
age = 18
is_genius = True

print(name)
print(age)
print(is_genius)

name = 'amit'
age = 12
is_genius = True

print(name )
print(age)
print(is_genius)

name = "Tony"
age = 13
is_genius = True

print(name)
print(age )
print(is_genius)

name = "Spiderman"
age = 24
is_genius = False

print(name)
print(age)
print(is_genius)

name = "phiens and ferb"
age = 10
is_genius = True

print(name)
print(age)
print(is_genius)

name = "phery the platepus"
age = 24
is_genius = True

print(name)
print(age)
print(is_genius)

name = "King kong"
age =13
is_genius = True

print(name)
print(age)
print(is_genius)

name = "Rabbit"
age = 14
is_genius = False

print(name)
print(age)
print(is_genius)

name = "Tony"
age = 15
is_genius = True

print(name)
print(age)
print(is_genius)

name = "Tony Stark"
age = 34
is_genius = False

print(name)
print(age)
print(is_genius)

name = "Wonder Women"
age = 25
is_genius = True

print(name)
print(age)
print(is_genius)

name = "Ben Tennysion"
age = 18
is_genius = True

print(name)
print(age)
print(is_genius)

name = "Jyoti Sharma"
age = 21
is_genius = True

print(name)
print(age)
print(is_genius)

name = "Gwen"
age = 10
is_genius

print(name)
print(age)
print(is_genius)

name = "Shradha Khapra"
age = 23
is_genius = True

print(name)
print(age)
print(is_genius)

# Taking input from user

superhero = input("what is your superhero name ?")
print(superhero)


name = input("what is your name ?")
print(name)

name = input("what is your name ?")
print(name)

name = input("what is your name")
print(name)

ben = input("what is your name")
print(ben)

name = input("what is your superhero name ?")
print(name)

name = input("what is your name ?")
print(name)

name = input("what is your name")
print(name)

name = input("what is your name")
print(name)

name = input("what is your superhero name ?")
print(name)

name = input("what is your superhero name ?")
print(name)

superhero = input("what is you name")
print(superhero)

superhero = input("what is your superhero name ?")
print(superhero)

phines_and_ferb = input("what is your name")
print(phines_and_ferb)

1 comment:

Lecture 2 | Variables in Java | Input Output | Complete Placement Course

                                                                                 JAVA PROGRAMMING     public class Main { public static...