Skip to content

Forum in maintenance, we will back soon 🙂

Notifications
Clear all

Python operation

4 Posts
2 Users
2 Reactions
35 Views
(@jay-kim)
Posts: 35
Trusted Member Customer
Topic starter
 

 

that could be easy to you. but not for me.

 

Please don't skip something easy you think. that could be hard to me..

 

you only wrote something only examples. not on the course..

 

what's that three things on the photo?

 
Posted : 07/10/2023 12:50 pm
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

Hi Friend

  1. Modulus Operator (%): The modulus operator calculates the remainder of the division between two numbers. For example, x % y returns the remainder when x is divided by y. It is commonly used to determine whether a number is even or odd by checking if the remainder of division by 2 is zero (even) or non-zero (odd).

  2. Floor Division Operator (//): The floor division operator performs division between two numbers and rounds the result down to the nearest whole number (integer value). For example, x // y returns the largest integer that is less than or equal to the division result of x by y.

  3. Exponentiation Operator (**): The exponentiation operator raises a number to a specified power. For example, x ** y calculates x raised to the power of y. It is equivalent to pow(x, y). For instance, 2 ** 3 returns 8 since 2 raised to the power of 3 is 8.

 
Posted : 07/10/2023 1:32 pm
SSAdvisor reacted
(@jay-kim)
Posts: 35
Trusted Member Customer
Topic starter
 

@admin have to remember everything..??

still not sure that could help me to make kinda website like yours..

the reason I'm here for me is to utilize open ai and get some help getting code from there and make the website tools like you..

 

 

 
Posted : 07/11/2023 12:02 pm
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

Friend, if this is your first time writing code, it is normal. We all start like this. 

you will not memorize anything, these are basic operations  ( + , - , X ....) we took them in elementary grade.

and yes, if you wanna build custom tools, you should learn the basics here.

 
Posted : 07/12/2023 10:48 am
SSAdvisor reacted
Share:
[the_ad_group id="312"]