ExpertConnect - Mentoring & Discussions

You can join mentoring & discussions for Free Ask Question, Give Answer, Discuss IT Problems, Learn, and Grow

2017-10-20 14:12:16 15

Python

Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python has a design philosophy that emphasizes code readability, notably using significant whitespace. It provides constructs that enable clear programming on both small and large scales.

Topic menu

2018-06-08 19:34:50 0
What's in your mind?
Profile picture of danny dsouza
Posted: Oct 6, 2021

Test

Comment ·  Like
Profile picture of Reena  Garcia

I am trying to create multiple sheets in a loop. I can only get the first sheet to write and not the second sheet. please help

Comment (1) ·  Like
Profile picture of Jackie Mondora

Jackie Mondora Nov 21, 2019

Sheets? Do you mean like a Word doc? Is so, you can use python-docx library.. (pip3 install python-docx). Google python-docx and you can see that you literally create a document and can add everything from headers, body, tables, images, bulleted items, etc. Very nice package!

Like

Write a new comment...
Ready to post? select an option:
Profile picture of Kennith  Marshall

How to place an object at the bottom of a canvas in tkinter?

Comment ·  Like
Profile picture of Talesha  Lance
Talesha Lance
Public
Posted: Jun 8, 2018

How can I remove an element from a list

Comment (1) ·  Like (1)
Profile picture of Wajih Qidwai

Wajih Qidwai Jun 8, 2018

it can be accomplish using del keyword. for instance following code will remove the element from location 2
del all_name[2]

Like

Write a new comment...
Ready to post? select an option:
Profile picture of Talesha  Lance
Talesha Lance
Public
Posted: Jun 8, 2018

What is Truthy and Falsy Values?

Comment (1) ·  Like (1)
Profile picture of Wajih Qidwai

Wajih Qidwai Jun 8, 2018

for instance, following code has a variable x which can contain any number, but if you want to check whether ic contains any number other than 0
x = 10
if x:
     print(“It containt value other than 0”)

Like

Write a new comment...
Ready to post? select an option:
Profile picture of Talesha  Lance
Talesha Lance
Public
Posted: Jun 8, 2018

taking an input in string from, but than I want to check if the whole string contains digits or not. How this can be accomplish?

Comment (1) ·  Like (1)
Profile picture of Wajih Qidwai

Wajih Qidwai Jun 8, 2018

you can use isdigit() for to evaulate. for instance, following code will return true, even though the type of variable “a” is not number
a = “1000”
print(a.isdigit())

Like

Write a new comment...
Ready to post? select an option:
Profile picture of Talesha  Lance
Talesha Lance
Public
Posted: Jun 8, 2018

if a Local variable defined with the same name as global variable then what will heppen?

Comment (1) ·  Like (1)
Profile picture of Wajih Qidwai

Wajih Qidwai Jun 8, 2018

In this case the global variable will become inaccessible to code within that specific function or you can say that local variable will hide that Global variable

Like

Write a new comment...
Ready to post? select an option:
Profile picture of Talesha  Lance
Talesha Lance
Public
Posted: Jun 8, 2018

What is the role of else in while or for loops?

Comment (1) ·  Like (1)
Profile picture of Wajih Qidwai

Wajih Qidwai Jun 8, 2018

The else block in for/while loop executes when loop finishes normally as per the codiction, not becuase of the break statement

Like

Write a new comment...
Ready to post? select an option:


Topic Experts