Skip to content

IT Notes

IT Notes

  • Home
  • Privacy Policy
  • Sample Page
    • Home
    • Interview Questions
    • Python Interview Questions
Python Interview Questions

How to print the star(*) pattern without newline and space?

Code to print the star(*) pattern without newline and space: for i in range(0, 20): print('*', end="")

Python Interview Questions

How can you print without a newline in Python?

From Python 3+, there is an additional parameter introduced for print() called end=. This parameter takes care of removing the newline that is added by default in print(). In the…

Python Interview Questions

Give an example of Python type()

str_list = "Welcome to Guru99" age = 50 pi = 3.14 c_num = 3j+10 my_list = my_tuple = ("A", "B", "C", "D") my_dict = {"A":"a", "B":"b", "C":"c", "D":"d"} my_set =…

Python Interview Questions

Write a code to get index of an element in a list using for loop

Code to get index of an element in a list using for loop: my_list = all_indexes = for i in range(0, len(my_list)) : if my_list == 'Guru' : all_indexes.append(i) print("Originallist…

Python Interview Questions

How can you count duplicate elements in a given list?

count duplicate elements in a given list list1 = elm_count = list1.count(3) print('The count of element: 3 is ', elm_count)

Python Interview Questions

Write a code for list count

Here, is a Code for list count: list1 = color_count = list1.count('green') print('The count of color: green is ', color_count)

Python Interview Questions

Write Python code to find average via loop

Here is a code to find average via loop: def cal_average(num): sum_num = 0 for t in num: sum_num = sum_num + t avg = sum_num / len(num) return avg…

Python Interview Questions

Explain slicing of matrix with example

Slicing will return you the elements from the matrix based on the start /end index given. The syntax for slicing is: If the start index is not given, it is…

Python Interview Questions

Write code for matrix multiplication

Code for matrix multiplication import numpy as np M1 = np.array(, ]) M2 = np.array(, ]) M3 = M1.dot(M2) print(M3)

Python Interview Questions

Write a Phyhon code for matrix subtraction

Phyhon code for matrix subtraction import numpy as np M1 = np.array(, , ]) M2 = np.array(, , ]) M3 = M1 - M2 print(M3)

Posts navigation

1 2 … 9

Next Page »

Recent Posts

  • What is Blade?
  • What are the features of Laravel?
  • What is Laravel?
  • Explain the for keyword
  • Explain the enum keyword

Recent Comments

No comments to show.

Archives

  • June 2025
  • November 2024
  • August 2024
  • July 2024
  • April 2024
  • September 2023
  • May 2023

Categories

  • Android Interview Questions
  • Angular JS interview Questions
  • C Programming
  • C Programs
  • C++ Programming
  • Codeigniter Interview Questions
  • Computer Network
  • CSS Interview Questions
  • HTML Interview Questions
  • Java
  • Java Interview Questions
  • Javascript Interview Questions
  • jQuery interview Questions
  • Laravel Interview Questions
  • Mobile Application Development
  • MySQL Interview Questions
  • PHP
  • PHP Interview Questions
  • Python
  • Python Interview Questions
  • React JS Interview Questions
  • Software Engineering
  • System Analysis and Design (SAAD)
  • Uncategorized
  • Vtiger CRM

You Missed

Laravel Interview Questions

What is Blade?

Laravel Interview Questions

What are the features of Laravel?

Laravel Interview Questions

What is Laravel?

C Programming

Explain the for keyword

IT Notes

Copyright © All rights reserved | Blogus by Themeansar.