Welcome To Code Bengali Channel we will see Unpack Tuples in Python Unpacking a Tuple When we create a tuple, we normally assign values to it. This is called "packing" a tuple: Example Packing a tuple: fruits = ("apple", "banana", "cherry") But, in Python, we are also allowed to extract the values back into variables. This is called "unpacking": Example Unpacking a tuple: fruits = ("apple", "banana", "cherry") (green, yellow, red) = fruits print(green) print(yellow) print(red) Note: The number of variables must match the number of values in the tuple, if not, you must use an asterisk to collect the remaining values as a list. Using Asterisk* If the number of variables is less than the number of values, you can add an * to the variable name and the values will be assigned to the variable as a list: Example Assign the rest of the values as a list called "red": fruits = ("apple", "banana", "cherry", "strawberry", "raspberry") (green, yellow, *red) = fruits print(green) print(yellow) print(red) *************** Must Watch Video **************** ➡️ Miles to kilometers Convert --:https://youtu.be/ofNI178nJ74 ➡️ Celsius to Fahrenheit Convert --:https://youtu.be/Bv0ZYevuS7A ➡️ string Length find --:https://youtu.be/_19bsUrgXe0 ➡️ string include method--:https://youtu.be/vhE2JSVNx-M ➡️ startsWith and endsWith--:https://youtu.be/6d_VnARbIG8 ➡️ Search method--:https://youtu.be/wy9MjFj0Yj8 ➡️ String match Method --:https://youtu.be/yEhQnzc_2sw ➡️ Spread Operator in JavaScript --:https://youtu.be/z7SPNA1cxvU ➡️ Spread Operator in Object--:https://youtu.be/mDU_5aEqalo *************** React JS Tutorial **************** ➡️ React JS Environment Setup --:: https://youtu.be/8A92a534MZU ➡️ React Folder Structure And NPM --:: https://youtu.be/Gv4t40FAhfM ➡️ React JSX and React Render --:: https://youtu.be/v-MnPDHkvO4 ➡️ Fragments in React --:: https://youtu.be/zBQfCRx2tss ➡️ Expressions in JSX --:: https://youtu.be/H2Utml_uxg4 ➡️ JSX Attribute in React --:: https://youtu.be/a929qR_YvgM ➡️ CSS in React JS--::https://youtu.be/tqIGMppDMxs ➡️ Google Fonts in React JS--::https://youtu.be/yVfnRdcQGJ4 ➡️ internal And inline Css--::https://youtu.be/SxkPCb2ZnuU ➡️ Components in ReactJs--::https://youtu.be/QM-IPrQTxHU ➡️ Props in ReactJs--::https://youtu.be/XjwoTpaZEuU ➡️ Array of an object in ReactJs-::https://youtu.be/SMssq8cPFFQ ➡️ map Method in ReactJs-::https://youtu.be/VEY1YQN5afM ➡️if else statement in React JS-::https://youtu.be/RGDNiU0HXfU ➡️React Developer Tool-::https://youtu.be/qo34sBw-34c ➡️Create Digital Clock In ReactJs-::https://youtu.be/Mfc9mTs3IDc ➡️Bootstrap use in React-::https://youtu.be/d7Ir_denUl4 ➡️Display data using input field p--1-::https://youtu.be/5UrpcU-o8II ➡️Display Data using input Field part--2-::https://youtu.be/jP4F-nAcAc0 ➡️Live Photo Search On React-::https://youtu.be/WQ8j9kcAzLE ➡️useEffect Hook in React js::https://youtu.be/apzMqnfgNZM ➡️React Router in ReactJs part-1::https://youtu.be/Jk_AnWS0BZ4 ➡️React Router in ReactJs part-2::https://youtu.be/_IkEsJ8K8xY ➡️React Router in ReactJs part-3:https://youtu.be/bywM_vRl4Vo ➡️React Router in ReactJs part-4:https://youtu.be/m7ppxX7et8w ➡️React Router in ReactJs part-5:https://youtu.be/2yx-bMuEoYk ➡️Nested Routes and Shared Routing:https://youtu.be/V19UPOrbKPk ➡️index props in react router--https://youtu.be/P_xTJh5t5Io *************** Node JS Tutorial **************** ➡️ Install Node JS Node.JS Script--::https://youtu.be/QNKQAkSMKcY ➡️REPL in NodeJS--::https://youtu.be/pH8aQWabYxI ➡️REPL in NodeJS Module and method--::https://youtu.be/AkfjMYXQN-s ➡️File System Module in Node.js--::https://youtu.be/3n8iVyip3r8 ➡️Async File System Module in Node.js--::https://youtu.be/YZaKskagXDI ➡️Path Module in Nodejs--::https://youtu.be/fA27pDiJnD0 *************** Python Tutorial **************** ➡️Python install Print Hello world in --::https://youtu.be/6AcKPWCIq_c ➡️Python Comments and Variables --::https://youtu.be/Vnyrp6diCz0 ➡️Variables Creating Rules in Python --::https://youtu.be/x4DyKgzBK5A ➡️Python Assignment Operators --::https://youtu.be/P5emWiTnvdM *************** Express Tutorial **************** ➡️Express install and creat server --::https://youtu.be/AtP6MXuvT_w ➡️Express Routing and Nodemon --::https://youtu.be/7FWYQ9mGtOo ➡️Send Html Data as a Response --::https://youtu.be/6XdWybFE_mY ➡️Send JSON and Object Data --::https://youtu.be/N03_nYA0oHw ➡️Website Host using Express --::https://youtu.be/bSf3CHzecwo ➡️Template engine Express hbs --::https://youtu.be/2NIaPzrrbUE ➡️Template Dynamic Data Change --::https://youtu.be/An7cVlkkPyw *************** MongoDB Tutorial **************** ➡️Data insert MongoDB --::https://youtu.be/9_VPw6pysok ➡️Sorting Query Methods --::https://youtu.be/6eYGrk7lceU Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network.
Welcome To Code Bengali Channel we will see Unpack Tuples in Python Unpacking a Tuple When we create a tuple, we normally assign values to it. This is called "packing" a tuple: Example Packing a tuple: fruits = ("apple", "banana", "cherry") But, in Python, we are also allowed to extract the values back into variables. This is called "unpacking": Example Unpacking a tuple: fruits = ("apple", "banana", "cherry") (green, yellow, red) = fruits print(green) print(yellow) print(red) Note: The number of variables must match the number of values in the tuple, if not, you must use an asterisk to collect the remaining values as a list. Using Asterisk* If the number of variables is less than the number of values, you can add an * to the variable name and the values will be assigned to the variable as a list: Example Assign the rest of the values as a list called "red": fruits = ("apple", "banana", "cherry", "strawberry", "raspberry") (green, yellow, *red) = fruits print(green) print(yellow) print(red) *************** Must Watch Video **************** ➡️ Miles to kilometers Convert --:https://youtu.be/ofNI178nJ74 ➡️ Celsius to Fahrenheit Convert --:https://youtu.be/Bv0ZYevuS7A ➡️ string Length find --:https://youtu.be/_19bsUrgXe0 ➡️ string include method--:https://youtu.be/vhE2JSVNx-M ➡️ startsWith and endsWith--:https://youtu.be/6d_VnARbIG8 ➡️ Search method--:https://youtu.be/wy9MjFj0Yj8 ➡️ String match Method --:https://youtu.be/yEhQnzc_2sw ➡️ Spread Operator in JavaScript --:https://youtu.be/z7SPNA1cxvU ➡️ Spread Operator in Object--:https://youtu.be/mDU_5aEqalo *************** React JS Tutorial **************** ➡️ React JS Environment Setup --:: https://youtu.be/8A92a534MZU ➡️ React Folder Structure And NPM --:: https://youtu.be/Gv4t40FAhfM ➡️ React JSX and React Render --:: https://youtu.be/v-MnPDHkvO4 ➡️ Fragments in React --:: https://youtu.be/zBQfCRx2tss ➡️ Expressions in JSX --:: https://youtu.be/H2Utml_uxg4 ➡️ JSX Attribute in React --:: https://youtu.be/a929qR_YvgM ➡️ CSS in React JS--::https://youtu.be/tqIGMppDMxs ➡️ Google Fonts in React JS--::https://youtu.be/yVfnRdcQGJ4 ➡️ internal And inline Css--::https://youtu.be/SxkPCb2ZnuU ➡️ Components in ReactJs--::https://youtu.be/QM-IPrQTxHU ➡️ Props in ReactJs--::https://youtu.be/XjwoTpaZEuU ➡️ Array of an object in ReactJs-::https://youtu.be/SMssq8cPFFQ ➡️ map Method in ReactJs-::https://youtu.be/VEY1YQN5afM ➡️if else statement in React JS-::https://youtu.be/RGDNiU0HXfU ➡️React Developer Tool-::https://youtu.be/qo34sBw-34c ➡️Create Digital Clock In ReactJs-::https://youtu.be/Mfc9mTs3IDc ➡️Bootstrap use in React-::https://youtu.be/d7Ir_denUl4 ➡️Display data using input field p--1-::https://youtu.be/5UrpcU-o8II ➡️Display Data using input Field part--2-::https://youtu.be/jP4F-nAcAc0 ➡️Live Photo Search On React-::https://youtu.be/WQ8j9kcAzLE ➡️useEffect Hook in React js::https://youtu.be/apzMqnfgNZM ➡️React Router in ReactJs part-1::https://youtu.be/Jk_AnWS0BZ4 ➡️React Router in ReactJs part-2::https://youtu.be/_IkEsJ8K8xY ➡️React Router in ReactJs part-3:https://youtu.be/bywM_vRl4Vo ➡️React Router in ReactJs part-4:https://youtu.be/m7ppxX7et8w ➡️React Router in ReactJs part-5:https://youtu.be/2yx-bMuEoYk ➡️Nested Routes and Shared Routing:https://youtu.be/V19UPOrbKPk ➡️index props in react router--https://youtu.be/P_xTJh5t5Io *************** Node JS Tutorial **************** ➡️ Install Node JS Node.JS Script--::https://youtu.be/QNKQAkSMKcY ➡️REPL in NodeJS--::https://youtu.be/pH8aQWabYxI ➡️REPL in NodeJS Module and method--::https://youtu.be/AkfjMYXQN-s ➡️File System Module in Node.js--::https://youtu.be/3n8iVyip3r8 ➡️Async File System Module in Node.js--::https://youtu.be/YZaKskagXDI ➡️Path Module in Nodejs--::https://youtu.be/fA27pDiJnD0 *************** Python Tutorial **************** ➡️Python install Print Hello world in --::https://youtu.be/6AcKPWCIq_c ➡️Python Comments and Variables --::https://youtu.be/Vnyrp6diCz0 ➡️Variables Creating Rules in Python --::https://youtu.be/x4DyKgzBK5A ➡️Python Assignment Operators --::https://youtu.be/P5emWiTnvdM *************** Express Tutorial **************** ➡️Express install and creat server --::https://youtu.be/AtP6MXuvT_w ➡️Express Routing and Nodemon --::https://youtu.be/7FWYQ9mGtOo ➡️Send Html Data as a Response --::https://youtu.be/6XdWybFE_mY ➡️Send JSON and Object Data --::https://youtu.be/N03_nYA0oHw ➡️Website Host using Express --::https://youtu.be/bSf3CHzecwo ➡️Template engine Express hbs --::https://youtu.be/2NIaPzrrbUE ➡️Template Dynamic Data Change --::https://youtu.be/An7cVlkkPyw *************** MongoDB Tutorial **************** ➡️Data insert MongoDB --::https://youtu.be/9_VPw6pysok ➡️Sorting Query Methods --::https://youtu.be/6eYGrk7lceU Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network.