256 Kilobytes

Computer Programming > Python

Type All Category Computer ProgrammingContent about programming computers. Tag Python

Profile Photo - K. Crezcheezy

[Python] How do global variables work?

Answers in Computer Programming | By K. Crezcheezy

Published

Profile Photo - Default

Last ReplyVariables that are created outside of a function are known as Global Variables. A global variable is one that can be accessed anywhere . This means, g... germyrinn,

Variables that are create...

Wed, 18 Mar 2020 22:58:39 -07003 months ago1
🗨 2
🐏 0
👁 373
Profile Photo - Some Guy
Profile Photo - Graln_of_Truth

Last ReplyIt will usually taking 3 months before you get to the point where you can do everything on your own without having to get support from others. Also Se... Graln_of_Truth,

It will usually taking 3...

Sat, 30 Mar 2019 16:09:52 -07001 year ago1
🗨 1
🐏 0
👁 351
Profile Photo - Some Guy

Python floor division: Difference between '/' and '//' ?

Answers in Computer Programming | By Some Guy

Published

Profile Photo - Zhaybib

Last ReplyFor python floor division questions, I recommend that you check out Stack Overflow, as there are many answers such as this one, https://stackoverflow.... Zhaybib,

For python floor division...

Sat, 30 Mar 2019 15:25:48 -07001 year ago1
🗨 1
🐏 0
👁 312
Profile Photo - Some Guy

How to clear the screen in Python?

Answers in Computer Programming | By Some Guy

Published

Profile Photo - SiteIessVagrant

Last ReplyI do not know how to do this. I have not had much experience with python and coding. SiteIessVagrant,

I do not know how to do t...

Sat, 30 Mar 2019 14:48:00 -07001 year ago1
🗨 1
🐏 0
👁 391
Profile Photo - Edgelady43069

R vs. Python for data science?

Answers in Computer Programming | By Edgelady43069

Published

Profile Photo - -alxl_

Last ReplyShort version - R is probably better for short term project. Long term learning Python may open more doors. R is nice because there are a lot of prema... -alxl_,

Short version - R is prob...

Sat, 30 Mar 2019 14:27:59 -07001 year ago1
🗨 1
🐏 0
👁 231
Profile Photo - Edgelady43069

[Python] How to unpack a tuple?

Answers in Computer Programming | By Edgelady43069

Published

Profile Photo - Zhaybib

Last ReplyWhen you are learning Python, you will learn about how to unpack a tuple. The way to unpack a tuple is to follow the steps that are outlined in this w... Zhaybib,

When you are learning Pyt...

Thu, 21 Mar 2019 00:52:27 -07001 year ago1
🗨 1
🐏 0
👁 247
Profile Photo - Edgelady43069
Profile Photo - Zhaybib

Last ReplyWhen you are working in computer programming and need help solving the error of invalid literal for int() with base 10, you can get that information r... Zhaybib,

When you are working in c...

Wed, 20 Mar 2019 20:06:27 -07001 year ago1
🗨 1
🐏 0
👁 225
Profile Photo - Some Guy

How to round up in Python?

Answers in Computer Programming | By Some Guy

Published

Profile Photo - roxblade

Last ReplyThe ceil function is quite useful. Import the math library and issue the following code:print(math.ceil(6.3)) and it will be rounded off to 6.There ar... roxblade,

The ceil function is quit...

Thu, 14 Feb 2019 23:41:39 -08001 year ago1
🗨 1
🐏 0
👁 298
Profile Photo - Some Guy

[Pandas] Get all unique values in a column?

Answers in Computer Programming | By Some Guy

Published

Profile Photo - roxblade

Last ReplyHere's an efficient way of doing that, courtesy to Bob Haffner:# Import modules import pandas as pd# Set ipython's max row display pd.set_option('di... roxblade,

Here's an efficient way o...

Sun, 03 Feb 2019 11:38:50 -08001 year ago1
🗨 1
🐏 0
👁 262