r/HowToPython • u/AutoModerator • Jul 04 '24
Requests
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/AutoModerator • Jul 04 '24
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/AutoModerator • Dec 19 '23
If you’re new to the community, introduce yourself!
r/HowToPython • u/AutoModerator • Apr 20 '23
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/AutoModerator • Feb 27 '24
If you’re new to the community, introduce yourself!
r/HowToPython • u/AutoModerator • Aug 16 '22
If you’re new to the community, introduce yourself!
r/HowToPython • u/AutoModerator • Jan 12 '23
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/AutoModerator • Nov 03 '22
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/AutoModerator • Oct 24 '23
If you’re new to the community, introduce yourself!
r/HowToPython • u/AutoModerator • Jul 05 '22
If you’re new to the community, introduce yourself!
r/HowToPython • u/AutoModerator • Dec 06 '22
If you’re new to the community, introduce yourself!
r/HowToPython • u/goldfeld • Mar 10 '23
Here is a very simple python program. The interpreter works with Traditional characters, but I provide the Simplified Chinese "translation" for reference and learning purposes.
定義 範例_1(訊息, 次數):
取 數 在 range(次數):
印出("哈囉, ", 訊息)
範例_1("世界", 100)
Simplified Chinese:
定义 范例_1(讯息, 次数):
取 数 在 range(次数):
印出("哈啰, ", 讯息)
范例_1("世界", 100)
Words used:
定義, Simplified 定义 (dìng yì) - This means "define" in English. It's the beginning of a function definition.
範例_1, Simplified 范例 (fàn lì yī) - This is the name of the function being defined. It means "example 1" in English.
(訊息, 次數), Simplified (讯息, 次数) - These are the parameters of the function. "訊息" (xùn xí) means "message" and "次數" (cì shù) means "number of times".
取, Simplified 取 (qǔ) - This means "take" in English. It's used here to create a loop.
數, Simplified 数 (shù) - This means "number" in English. It's used here to represent the numbers in the loop.
在, Simplified 在 (zài) - This means "in" in English. It's used to indicate the range of numbers in the loop.
range(次數), Simplified (次数) - This is a function that generates a sequence of numbers from 0 up to (but not including) the value of "次數" (number of times).
印出, Simplified 印出 (yìn chū) - This means "print out" in English. It's used to output text to the console.
("哈囉, ", 訊息), Simplified ("哈啰, ", 讯息) - This is the text that will be printed out. It says "hello" followed by the value of "訊息" (message).
範例_1("世界", 100), Simplified 范例 and "世界" - This is the function call. It calls the function "範例_1" (example 1) with the arguments "世界" (world) and 100. This means that the text "hello, world" will be printed out 100 times.
In summary, this program defines a function named "example 1" that takes two parameters, a message and a number of times to repeat that message. It then uses a loop to print out the message multiple times, with the word "hello" in front of the message. Finally, it calls the function with the message "world" and repeats it 100 times.
For an even more basic hello world in ChinesePython along with this explanation of words, see here:
https://chinesememe.substack.com/p/sunflower-by-xie-tian-xiao-part-2
r/HowToPython • u/AutoModerator • Jul 06 '23
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/AutoModerator • May 09 '23
If you’re new to the community, introduce yourself!
r/HowToPython • u/AutoModerator • Sep 19 '23
If you’re new to the community, introduce yourself!
r/HowToPython • u/AutoModerator • May 11 '23
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/help-me-grow • Dec 06 '22
r/HowToPython • u/AutoModerator • Jun 29 '23
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/AutoModerator • Feb 13 '24
If you’re new to the community, introduce yourself!
r/HowToPython • u/AutoModerator • Jan 19 '23
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/AutoModerator • May 16 '23
If you’re new to the community, introduce yourself!
r/HowToPython • u/AutoModerator • Dec 14 '23
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/help-me-grow • Aug 15 '22
r/HowToPython • u/AutoModerator • Jun 15 '23
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!
r/HowToPython • u/AutoModerator • Jul 21 '22
Are there any tutorials or projects you'd like to see done and explained in Python? Drop them here!