₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,985 members, 8,428,916 topics. Date: Thursday, 18 June 2026 at 08:10 AM

Toggle theme

Cutegentility's Posts

Nairaland ForumCutegentility's ProfileCutegentility's Posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 (of 17 pages)

RomanceRe: . by cutegentility(op):
.
RomanceRe: . by cutegentility(op):
.
Romance. by cutegentility(op):
.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 11:53am On Aug 28, 2018
Greeting to everybody in the house. I hope to continue with this thread sooner. Thanks for the support.
TravelRe: 7 Places You Must Visit As An Adult In Your Lifetime! by cutegentility(m): 9:20pm On Aug 24, 2018
Nice one
RomanceRe: Husspuppi: If I Need Chioma She Will Be Mine In 2 Weeks. by cutegentility(m): 8:35pm On Aug 22, 2018
See competition o
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 4:40am On Aug 21, 2018
Snwokenk:
Twisted - for networking
Pycryptodome - for cryptography

I tried using Tkinter for gui but will have to overhaul and probably use pyqt5 or use a browser-based gui. (probably with reactjs)
OK, nice one. I love programming.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 4:15am On Aug 21, 2018
Snwokenk:
what was your goal before deciding to learn python?

i started in 2016 and my goal was to build crypto script that aggregated all the volumed from multiple exchanges into a buy/sell signal.

it took me 2 months to be able to accomplish that. And from that I'm building a much larger project using python 3.6.

once you learn python learn a little C. you don't have to use it but it'll help you become a better programmer
Waoh, I am glad to hear this, I am having many project to accomplish with python. What framework do you use?
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op):
Data types is categorised into two, immutable and mutable. There are six data types in Python, they are: numbers, strings, tuples, lists, dictionaries and lastly, sets.
Immutable character are character whose value once assigned cannot be altered. Examples are numbers, strings and tuples while the rest are mutable.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 3:15am On Aug 21, 2018
The identity operator is nothing to worry about, it is use to check the value if it is either true or false in a program


The last operator which is the membership set deals basically with list. It is a set of item. Note, the list identifier is to be written in capital letter
Z = [a, b, c , d]

We shall be dealing with this under the various data types.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 3:05am On Aug 21, 2018
Bitwise Operators operate on bit level.
This convert your data to binary and carry out the output. e.g
1110
1010
We have the biwise And denoted by the symbol &
Bitwise denoted by vertical slash |,
And bitwise Xor denoted by ^.

For bitwise and
1110
1010
1010

Bitwise or
1110
1010
1110
Bitwise xor

1110
1010
0100

There are left shift and right shift in bitwise operation.

1100 >> 2 becomes 0011
1100<<2 becomes 0000
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op):
Logical operator. We have the and, or and the not gate.
In this case, you will be working on true and false.

Nb: always type true as True and false as False in Python. Because it is a reserved keyword.

a = True
b = False

For the And gate:
The output is high (1) if both the inputs are high otherwise low (0). Remember we are working on binary. So, the output of and gate is always low.


1 and 0 = 0
0 and 1 = 0
1 and 1 = 1
0 and 0 = 0



For the or gate:
The output is low(0) if both the inputs are low otherwise high (1). So, the output of or gate is always low.


1 or 0 = 1
0 or 1 = 1
1 or 1 = 1
0 or0 =0





The not gate is a reversal of the logic gate. If the inputs are high, the output will be low.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 2:33am On Aug 21, 2018
Comparison Operators

This is use to compare the values of a given variables.

We use operation
< Less than
> Greater than
== Equivalent to
!= not equivalent to

== is used instead of one equivalent sign in comparison operator
The value for this is either true or false.

Take for instance, print("is Z greater than Y", Z >Y)
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 2:24am On Aug 21, 2018
Then the assignment operator assign the value of the right side as the value of the left hand side.

say Z = X + Y
Z = 150.

Now, the assignment operator is useful when dealing with two variables.

Hence, for addition of Z and Y. You simply use the shorthand +=

Hence, Z +=Y
Z//=Y,
Z/=Y,
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 2:17am On Aug 21, 2018
You execute your operation by using the print statement. print("",).

Take:
X = 50
Y= 100


To carry out arithmetical operation, use start by typing:
print("X plus Y," X+Y)
print("X minus Y," X-Y)
print("X divided by Y," X/Y)
print("X multiply by Y," X*Y)

For exponential you use double asterisk
Say 10 raise to power 2

print(10^2, 10**3)


For modulus division. Modulus division is just the remainder of your division. The modulus of 9 divided by 2 is 1.
So, print("9 modulus 2", 9%2)


Then // for floor division. It simply round off your decimal to zero.

Say 20//3 equals to 9 or say 9.0
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op):
Humchi:
COMMAND-LINE STRING INPUT

python allows for command line input. That means we are to ask user for input. The following example asks for user's name, then, by using the "input()" method, the program prints the name to the screen:

p r i n t ( " e n t e r y o u r n a m e : " )



x = i n p u t ( )





p r i n t ( " h e l l o " + x )


save this file as demo_string_input.py, and load it through the commmand line:

the program will prompt the user for a string:
_____________________
ENTER YOUR NAME:
_____________________

The user now enters a name like HUMCHI
then the program prints it to screen with a little message: HELLO HUMCHI
well done job, I was so busy.
HealthRe: Girl Who Shot Herself In The Face In Suicide Attempt Get Face Transplant(Pics) by cutegentility(m):
God bless those doctors.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 4:36pm On Aug 20, 2018
GreatAchiever1:
Speaking of pygame sef, has anyone ever made a decent game with it or just use it to design their codes?
I haven't find yet, everyone will keep trying.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 6:05am On Aug 20, 2018
olamil34:
Dropbox, nairaland
Waoh, nice one. I never knew nairaland use this. Amazing
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 7:50pm On Aug 19, 2018
sparkle6:
i have the update microsoft 2015 men. But i think i will download the zip file.
You may try the zip file
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op):
sparkle6:
where did u download mysql share pls. the one i download had no gui\workbench.
what version? I also encounter same problem.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 6:08pm On Aug 19, 2018
Darivie04:
It depends on the type of PDF(book) you have. I've never watched a Python video and I still know Python extremely well.

I'm actually a supporter of PDF over videos lol, everyone has different learning styles.
So true, it depends on individual and their learning skills. But, the reason why I sometimes support videos is that, if one is a self-taught programmer. There are some words that you may not know the pronunciation. Take for instance operation // for flow division. Well it may also depend on how comprehensive the PDF document is.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 10:26am On Aug 19, 2018
sparkle6:
where did u download mysql share pls. the one i download had no gui\workbench.
download xampp, I think it has in built mySql
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 9:28am On Aug 19, 2018
Now, for the Arithmetical Operator. You use Mathematical symbols.
+, -,/,* (addition, subtraction, division and multiplication)
** for exponential
// for flow division
and % for modulus division
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 9:23am On Aug 19, 2018
youngds:
Ya. But for web development I prefer pHP or Java, am more fluent with Java due to it demand on Android software development. I do alot of pygames during my uni days, just for learning thou
OK, nice one bruh. I support PHP for web development any day any time. Only that Python is a beginner language.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op):
TimmyBrass:
continue. I'm with you..
Alright, have you installed the Python software.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 7:43am On Aug 19, 2018
youngds:
What is this one say?
So because you know class, variable, array and looping you think you fully understand the language?? Bro that a basic for every object oriented language. Except you are planning on using it for math problems, bro you know nothing and you can't fully articulate all program construct of a language within a year except for pHP and likes which are scripting language, do you know pygames, pyqt5 or even py for machine development? This are package under python
Yeah, I find out that Python is a very vast programming language. It is used across many domains for data science, artificial intelligence, machine learning,GUI and the likes. I think Django and flask are Python framework for developing websites.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 7:38am On Aug 19, 2018
Please, for complete beginner. There are two version of python which are version 2.7 and version 3.6. It is advisable to download the version 3.6 because of its features, version 2.7 is just for those industries that are already using this version. Aside this, installing Python software is not enough without installing Python IDE. IDE is an abbreviation of Integrated Development Environment which enable one to work on multiple project. For me, I use the community version of pycharm as the professional version is a paid one.
ProgrammingRe: MY JOURNEY WITH PYTHON!!! by cutegentility(op): 7:31am On Aug 19, 2018
gracefoundmme:
Ride on sir am following... What are the operators
They are:
1. Arithmetical Operators
2. Assignment Operators
3. Comparison Operators
4. Logical Operators
5. Bitwise Operators
6. Identity Operators and lastly
7. Membership operators

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 (of 17 pages)