Thursday, September 23, 2021

 Which keyword can be used for coming out of recursion?

Return

Which keyword is used to come out of a loop only for that iteration?

Break

_ is used to create an object.

constructor

What is instantiation in terms of OOP terminology?

The creation of an instance of a class.

Which one of the following is the correct extension of the Python file?

.py

Which is the correct HTML element for the largest heading:

The h1 element

What is the correct HTML for making a drop-down list?

<select> tag

What is the correct HTML for inserting an image?

<img src="img.gif" alt="MyPic">

src attribute in an image tag means what?

Source of the image

Python is _ programming language

high-level

What is an algorithm?

A set of instructions in order

Which are themselves a collection of different data types?

structures

In the C language, the constant is defined_.

Anywhere, but starting on a new line

What is required in each C program?

The program must have at least one function.







Tuesday, September 21, 2021

Search Engine Optimization (SEO)

On-Page SEO

Off-Page SEO

Crawler

WordPress

Title Page

H1 Tag

Description Tag

Portent's SERP Preview Tool

Google Analytics

Mobile Friendly Test

Friday, February 5, 2021

Python program for finding unique characters from the string

 temp = ""

string = input("Enter a string:")

for ch in string:

    nch = ch

    if(nch in temp):

        pass

    else:

        print(ch)

    temp = temp + ch






temp = ""

string = input("Enter a string:")

for ch in string:

    nch = ch

    count = 1

    if(nch in temp):

        count += 1

    else:

        print(ch,"count:", count)

    temp = temp + ch

Python program for reversing a string

First Method:


string = input("Enter a string:")

r = ""

l = len(string)

for a in range(l):

    r = r + string[l-a-1]

if(string == r):

    print(string, "is a palindrome")

else:

    print(string, "is not a palindrome")


Second Method: 


string = input("Enter a string:")

r = ""

length = len(string)

for a in range(-1, (-length-1), -1):

    r = r + string[a]

if(string == r):

    print(string, "is a palindrome")

else:

    print(string, "is not a palindrome")



Tuesday, February 2, 2021

Python program for String Traversal

 name = "awesome"

for c in name:

    print(c,'-', end = ' ')


Python program for reading a string and displaying it in reverse order

 string = input("Enter a string:")

print("The", string, "in reverse order is:")

length = len(string)

for l in range(-1, (-length-1), -1):

print(string[l])

Saturday, January 16, 2021

Python program for finding whether the given number is an odd or an even number

 n = int(input("Enter a number:"))

if n % 2 == 0:

    print(n, "is an even number")

else:

    print(n, "is an odd number")

Python code for finding net salary

sal = float(input("Enter salary:"))

exp = int(input("Enter work experience:"))

grade = input("Enter grade:")


if(exp>=15):

    if(grade == 'A' or grade == 'a'):

        ns = sal * 2

    elif(grade == 'B' or grade == 'b'):

        ns = sal * 1.75

    elif(grade == 'C' or grade == 'c'):

        ns = sal * 1.50

    else:

        print("Invalid Input")

elif(exp >= 10 and exp < 15):

    ns = sal * 1.50

elif(exp >= 5 and exp < 10):

    ns = sal * 1.40

else:

    ns = sal * 1.25

print("Net Salary:", ns)

Sunday, January 10, 2021

The Big Bang Theory - S7:E4


Funny Moments
- Sheldon's fun taken away
- Leonard, Raj, Howard's fun taken away from the movie
- Stuart's photo clicking
- Sheldon liking comic

Friday, January 8, 2021

Python code for merging first name, middle name, & last name

 fname=input("Enter First Name:")

mname=input("Enter Middle Name:")

lname=input("Enter Last Name:")

fullname=fname+mname+lname

print(fullname)

Python code for simple operational calculator

First Method:


n1=float(input("Enter number1:"))

n2=float(input("Enter number2:"))

sign=input("Enter sign:")

if sign=='+':

    print("Answer=",n1+n2)

elif sign=='-':

    print("Answer=",n1-n2)

elif sign=='*':

    print("Answer=",n1*n2)

elif sign=='/':

    print("Answer=",n1/n2)

else:

    print("Invalid sign")


Second Method: 


n1=float(input("Enter number1:"))

n2=float(input("Enter number2:"))

sign=input("Enter sign:")

if sign=='+':

    n=n1+n2

elif sign=='-':

    n=n1-n2

elif sign=='*':

    n=n1*n2

elif sign=='/':

    n=n1/n2

else:

    print("Invalid sign")

print("Answer=",n)

Thursday, January 7, 2021

Python code for finding greater number

 v1=int(input("Enter value1:"))

v2=int(input("Enter value2:"))

if(v1>v2):

    print("value1 is greater")

else:

    print("value2 is greater")

Python code for student result system

roll_no=input("Enter roll number:")

name=input("Enter name:")

city=input("Enter city:")

eng=int(input("Enter English Marks:"))

maths=int(input("Enter Maths Marks:"))

sci=int(input("Enter Science Marks:"))

total=eng+maths+sci

average=total/3

print("Roll Number:",roll_no)

print("Name:",name)

print("City:",city)

print("English Marks:",eng)

print("Maths Marks:",maths)

print("Science Marks:",sci)

print("Total Marks:",total)

print("Average:",average)

Python code to find the amount of seconds

 days=int(input("Input Days:")) * 3600 * 24

hours=int(input("Input Hours:"))*3600

minutes=int(input("Input Minutes:"))*60

seconds=int(input("Input Seconds:"))

time=days+hours+minutes+seconds

print("The amounts of seconds", time)

SAP Tcodes

zme27 - Automatic STO creation mmbe - Stock Overview, Material, Batch me51n - Create Purchase Requisition me21n - Create Purchase Order me59...