Курсы
Курсы
Компилятор кода
Компилятор кода
Обсуждения
Teams
Войти
Регистрация
Menu
Обсуждения
Поиск
Поиск
Задать вопрос
Задать вопрос
a=[] a.append(a) print(a) out:[[...]]
lists
python
4 голосов
8 ответов
11th Sep 2021, 2:37 PM
Arsalan [Inactive]
a=[1,2,3,4,5] for i in a: a.remove(i) print(a)
python3
1 голос
19 ответов
22nd May 2020, 6:20 PM
Levi
a=[1,2,3,4,1] for n in a: a[n]=0 print(a)
python3
1 голос
6 ответов
5th Aug 2018, 6:09 AM
Mohd Naved Ansari
a = 2 for i in range(-5,5): a=a+a print(a)
python
7 голосов
5 ответов
20th Mar 2021, 6:33 AM
Lazizbek
a=[1,2,3,4,5] for i in a: a.remove(i) print(a)
@python
0 голосов
1 ответ
14th Oct 2024, 12:54 PM
Palagani akhila gowd
a=(lambda x:x*(x+1))_ print(a) How do I call 6 to the above code?
lambdas
python
-1 голос
10 ответов
25th Sep 2016, 4:03 AM
Shankar Balasubramaniam
a=input("Enter one strings:") print(a) b=input("input other string:") print(b) c=(a+b) print(c)
python
strings
0 голосов
3 ответов
27th Jul 2019, 9:02 AM
Dhyey Badheka
a = [i for i in range(8)] print(a) for i in a: a.remove(i) print(i) print (sum(a))
python
python3
1 голос
3 ответов
17th Jun 2019, 7:28 AM
Praveen E
What will be the output of this code? a=float("123"*int(input("Enter a number:"))) Enter a number:2 print(a)
python
pythonprogramming
sololearn
-5 голосов
3 ответов
9th May 2020, 9:41 AM
Rohit tahiliani
why i us: a=float(input()) a=a+10 print(a) is correct but when i use a=a+10 a=float(input()) print=(a) is wrong. I need a answer
python
0 голосов
4 ответов
18th Oct 2024, 2:15 PM
Dang Yuh
Float * int (mistake): a=179*1.13 print(a) Output = 202,269999999999999 But right answer is 202.27 What is the mistake in python???
python
0 голосов
5 ответов
18th Oct 2016, 9:40 AM
Konstantin Markov
how to make sure that the output is only one row for example output is only print(a)
average
python
0 голосов
1 ответ
16th Sep 2016, 5:50 PM
Tjomq Jazz
i//2 == 20 then i = 40 ,i//2 = 40/2 = 20 Why the answer print(a) = [20] is incorrect ?
python3
1 голос
4 ответов
13th Oct 2020, 5:09 AM
Rajan K
>>>a=10 >>>while a<=25: a+=2 print(a) >>>12,......26 Why this code print up to 26 when it is less than 25? >>>a = 10 >>>while a <= 25: print(a) a+=2 >>>12,.......24 What is the difference between these two code & why they give different result?
python
while
0 голосов
3 ответов
1st Jul 2016, 3:38 AM
Romario Kisku
a = 6 while a >=2: print(a) a -= 1 b = 6 while True: print(b) b -=1 if b <=2: break
python3
0 голосов
2 ответов
30th Oct 2020, 12:49 AM
Sushil Mundhra
So I tried a = "a" while a <= "e": print(a) a = "a" + "1" print("Finished") and it said time limit exceeded
loops
python
0 голосов
5 ответов
7th Sep 2016, 10:49 PM
Tendai25
I write the python on IDLE like this (testing) >> a =("Hello World") >> print(a) i save it with ".py" why not work?
python3
0 голосов
5 ответов
3rd Jul 2017, 12:57 PM
Fariz Duta Nugraha
Function output
def
func(a)
func(x):
print(a)
x=1
0 голосов
5 ответов
12th Feb 2020, 8:35 PM
Sinan
a = [1,1,2,3,5,8] for a[1] in a: pass print(a) result :[1, 8, 2, 3, 5, 8] want to know how index-1 is replaced as 8.
python
2 голосов
3 ответов
22nd Nov 2019, 6:03 AM
Sreeraj V A
Задать вопрос
Задать вопрос
Задать вопрос
Задать вопрос
Актуальное сегодня
Help please?
4 Votes
How to get better with problem-solving and programming
1 Votes
Odd even threads without condition variable
0 Votes
Ejercicio Pytho
0 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Suggestions needed
4 Votes
Game development
0 Votes
Write a program to find the strings are in isogram or not
0 Votes
Ruby programming?
3 Votes