Добавить новость
15 апреля 2026 года
Ria.city


Новости сегодня

Новости от TheMoneytizer




«Живые» новости

Rss.plus

Новости от Russia24.pro

Russia24.pro Каталог

Первые новости сегодня

Си Цзиньпин: Россия и Китай должны защищать глобальный Юг

Москва и Пекин должны выстраивать более тесное стратегическое взаимодействие для поддержания единства государств глобального Юга... Читать дальше...

Топ новостей последнего часа





Апрель
2026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

Все новости

Technologyrule.com 

SLIP 19 Q1-Q2-Q3


calculator.py---------------
def add(x, y): return x + y

def subtract(x, y):
return x - y

def multiply(x, y):
return x * y

def divide(x, y):
return x / y

print("Select operation.")
print("1.Add")
print("2.Subtract")
print("3.Multiply")
print("4.Divide")

choice = input("Enter choice(1/2/3/4):")

num1 = int(input("Enter first number: "))
num2 = int(input("Enter second number: "))

if choice == '1':
print(num1,"+",num2,"="... Читать дальше...

Technologyrule.com 

SLIP 7- Q1-Q2-Q3

#Q1: write a program which prints series of fibbonacco series of a number

n1=0
n2=1
x=int(input("Enter the number of elements"))
for i in range(x):
n3=n1+n2
n1=n2
n2=n3
print(n3)Q2: write a python program to accept two lists and merge the two lists into list of tuples

keys=[]
values=[]
n=int(input("Enter number of elements for dictionary:"))
print("For keys:")
for x in range(0,n):
element=int(input("Enter element"... Читать дальше...

Technologyrule.com 

SLIP 14 Q1-Q2-Q3



Q1-------------------------------------------------------------------------------------------

tuplex = (2,2,3,5,6)
print(tuplex)
#return the number of times it appears in the tuple.
count = tuplex.count(2)
print("repeated numbres",count)
'''output=(2, 2, 3, 5, 6)
2'''
Q2----------------------------------------------------------------

class py_solution:
def is_valid_parenthese(self, str1):
stack, pchar = [], {"(": ")", "{": "}", "[":... Читать дальше...

Technologyrule.com 

SLIP 15 Q1-Q2-Q3

Q1---------------------------------------------------------------l_range=int(input("Enter the lower range:"))
u_range=int(input("Enter the upper range:"))
a=[(x,x**2) for x in range(l_range,u_range+1)]
print(a)
Q2-----------------------------------------------------import os
import glob
import collections

dirpath = r"/Users/pavan/Documents"
os.chdir(dirpath)
cnt = collections.Counter()
for filename in glob.glob("*"):
name, ext = os.path.splitext(filename)
... Читать дальше...

Technologyrule.com 

SLIP 17 Q1-Q2-Q3

Q1-------------------------------------------------------------------

tuplex = ("w", 3, "r", "e", "s", "o", "u", "r", "c", "e")
print("r" in tuplex)
print(5 in tuplex)

Q2----------------------------------------------------------------

print("\nMenu\n(H)exadesimal to octal\n(D)esimal to octal\n(B)inary to octal\n(Q)uit")
choose=input(">>> ")
choice=choose.lower()
while choice!="q":
if choice=="h":

hexdec = input("Enter a number in Hexadecimal Format... Читать дальше...

Technologyrule.com 

SLIP 8 Q1-Q2-Q3

Q1 Write a program which accept an integer value 'n' and prints all prime numbers till 'n'

lower = int(input("Enter a lower no"))
upper = int(input("Enter a upper no"))
print("Prime numbers between",lower,"and",upper,"are:")
for num in range(lower,upper + 1):
if num > 1:
for i in range(2,num):
if (num % i) == 0:
break
else:
print(num)

O/P
Enter a lower no1
Enter a upper no10
Prime... Читать дальше...

Technologyrule.com 

SLIP 10 Q1-Q2-Q3


Q1----------------------------------------
def chars_mix_up(a,b):
new_a = b[:2] + a[2:]
new_b = a[:2] + b[2:]
return new_a +''+new_b
print(chars_mix_up('abc','xyz')

Q2----------------------------------

print("Input some integers to calculate their sum and average. Input 0 to exit.")

count = 0
sum = 0.0
number = 1

while number != 0:
number = int(input(""))
sum = sum + number
count += 1

if count == 0:
print("Input... Читать дальше...

Technologyrule.com 

SLIP 21 Q1-Q2-Q3


Q1-------------------------------------
n=int(input("enter a no."))
for i in range(1,11):
print(n,'*',i,'=',n*i)
Q2---------------------------------------------
import os
os.mkdir("xyz")
os.chdir("sss")
os.rmdir("xyz")
os.mkdir("aaa")
os.listdir("abc")
Q3-------------------------------------------------
class cal():
def __init__(self,a,b):
self.a=a
self.b=b
def add(self):
return self.a+self.b
def mul(self):
... Читать дальше...

Technologyrule.com 

SLIP 26 Q1-Q2-Q3


Q1---------------------------------------------------------
string = "My name is sanjeevani"

print("convert string to uppercase:")
print(string.upper())
print("\t")
string = "My name is sanjeevani"
print("convert string to lowercase:")
print(string.lower())

Q2--------------------------------------------------------
area = lambda r: 3.14*r*r

print("Area of circle:", area(5.2))

c = lambda r: 2*3.14*r
print("Circumference of circle:", c(4))
Q3----------------------------------------

Technologyrule.com 

SLIP 1 Q1-Q2-Q3


Q1---------------------------------

num = int(input("Input a four digit numbers: "))
x = num //1000
x1 = (num - x*1000)//100
x2 = (num - x*1000 - x1*100)//10
x3 = num - x*1000 - x1*100 - x2*10
print("The sum of digits in the number is", x+x1+x2+x3)

o/p
Input a four digit numbers: 4563
The sum of digits in the number is 18

Q2-------------------------------------------------------------------
def word_count(str):
counts = dict()
words... Читать дальше...





Smi24.net — ежеминутные новости с ежедневным архивом. Только у нас — все главные новости дня без политической цензуры. Абсолютно все точки зрения, трезвая аналитика, цивилизованные споры и обсуждения без взаимных обвинений и оскорблений. Помните, что не у всех точка зрения совпадает с Вашей. Уважайте мнение других, даже если Вы отстаиваете свой взгляд и свою позицию. Мы не навязываем Вам своё видение, мы даём Вам срез событий дня без цензуры и без купюр. Новости, какие они есть —онлайн с поминутным архивом по всем городам и регионам России, Украины, Белоруссии и Абхазии. Smi24.net — живые новости в живом эфире! Быстрый поиск от Smi24.net — это не только возможность первым узнать, но и преимущество сообщить срочные новости мгновенно на любом языке мира и быть услышанным тут же. В любую минуту Вы можете добавить свою новость - здесь.




Новости от наших партнёров в Вашем городе

Ria.city
Музыкальные новости
Новости России
Экология в России и мире
Спорт в России и мире
Moscow.media










Топ новостей на этот час

Rss.plus